Remove packages/flx and the FLX code signing scheme (#4612)

This commit is contained in:
Jason Simmons
2016-06-17 12:35:30 -07:00
committed by GitHub
parent 3a88a973a3
commit d89823be2a
9 changed files with 2 additions and 584 deletions

View File

@@ -6,8 +6,6 @@ import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:flx/bundle.dart';
import 'package:flx/signing.dart';
import 'package:json_schema/json_schema.dart';
import 'package:path/path.dart' as path;
import 'package:yaml/yaml.dart';
@@ -449,29 +447,10 @@ Future<int> assemble({
if (fontManifest != null)
zipBuilder.addEntry(fontManifest);
AsymmetricKeyPair<PublicKey, PrivateKey> keyPair = keyPairFromPrivateKeyFileSync(privateKeyPath);
printTrace('KeyPair from $privateKeyPath: $keyPair.');
if (keyPair != null) {
printTrace('Calling CipherParameters.seedRandom().');
CipherParameters.get().seedRandom();
}
File zipFile = new File(outputPath.substring(0, outputPath.length - 4) + '.zip');
printTrace('Encoding zip file to ${zipFile.path}');
zipBuilder.createZip(zipFile, new Directory(workingDirPath));
List<int> zipBytes = zipFile.readAsBytesSync();
ensureDirectoryExists(outputPath);
printTrace('Creating flx at $outputPath.');
Bundle bundle = new Bundle.fromContent(
path: outputPath,
manifest: manifestDescriptor,
contentBytes: zipBytes,
keyPair: keyPair
);
bundle.writeSync();
printTrace('Encoding zip file to $outputPath');
zipBuilder.createZip(new File(outputPath), new Directory(workingDirPath));
printTrace('Built $outputPath.');

View File

@@ -26,9 +26,6 @@ dependencies:
xml: ^2.4.1
yaml: ^2.1.3
flx:
path: ../flx
# We depend on very specific internal implementation details of the
# 'test' package, which change between versions, so here we pin it
# precisely.