Index: releaseAutomation.py |
diff --git a/releaseAutomation.py b/releaseAutomation.py |
index 8625a3e802a3589f53a563a3dd720b7a658aa15b..11793839b98bc1238a997598a2da6c6c97108956 100644 |
--- a/releaseAutomation.py |
+++ b/releaseAutomation.py |
@@ -46,6 +46,10 @@ def create_sourcearchive(repo, output): |
def run(baseDir, type, version, keyFiles, downloadsRepo): |
if type == 'gecko': |
import buildtools.packagerGecko as packager |
+ elif type == 'safari': |
+ import buildtools.packagerSafari as packager |
+ elif type == 'edge': |
+ import buildtools.packagerEdge as packager |
elif type == 'chrome': |
import buildtools.packagerChrome as packager |
@@ -87,8 +91,7 @@ def run(baseDir, type, version, keyFiles, downloadsRepo): |
packager.createBuild(baseDir, type=type, outFile=buildPath, releaseBuild=True, keyFile=keyFile) |
Wladimir Palant
2016/10/20 10:03:08
While at it, could you remove the keyFile paramete
kzar
2016/10/20 12:09:36
Done.
|
downloads.append(buildPath) |
elif type == 'chrome': |
- # We actually have to create three different builds: signed and unsigned |
- # Chrome builds (the latter for Chrome Web Store), and a signed Safari build. |
+ # Create both signed and unsigned Chrome builds (the latter for Chrome Web Store). |
metadata = packager.readMetadata(baseDir, type) |
buildPath = os.path.join(downloadsRepo, packager.getDefaultFileName(metadata, version, 'crx')) |
packager.createBuild(baseDir, type=type, outFile=buildPath, releaseBuild=True, keyFile=keyFiles[0]) |
@@ -96,12 +99,17 @@ def run(baseDir, type, version, keyFiles, downloadsRepo): |
buildPathUnsigned = os.path.join(baseDir, packager.getDefaultFileName(metadata, version, 'zip')) |
packager.createBuild(baseDir, type=type, outFile=buildPathUnsigned, releaseBuild=True, keyFile=None) |
+ elif type == 'safari': |
+ metadata = packager.readMetadata(baseDir, type) |
+ buildPath = os.path.join(downloadsRepo, packager.getDefaultFileName(metadata, version, 'safariextz')) |
+ packager.createBuild(baseDir, type='safari', outFile=buildPath, releaseBuild=True, keyFile=keyFiles[0]) |
+ downloads.append(buildPath) |
+ elif type == 'edge': |
+ # We only offer the Edge extension for use through the Windows Store |
+ metadata = packager.readMetadata(baseDir, type) |
+ buildPath = os.path.join(downloadsRepo, packager.getDefaultFileName(metadata, version, 'appx')) |
+ packager.createBuild(baseDir, type=type, outFile=buildPathUnsigned, releaseBuild=True, keyFile=None) |
Sebastian Noack
2016/10/19 14:26:14
I suppose the absence of downloads.append(...) mea
kzar
2016/10/19 14:31:03
That's the idea. I followed the example of the uns
Sebastian Noack
2016/10/19 15:08:24
Sure, I just thought that it might be useful to ar
Wladimir Palant
2016/10/20 10:03:08
This file should definitely be added to the downlo
kzar
2016/10/20 12:09:36
Done.
|
- import buildtools.packagerSafari as packagerSafari |
- metadataSafari = packagerSafari.readMetadata(baseDir, 'safari') |
- buildPathSafari = os.path.join(downloadsRepo, packagerSafari.getDefaultFileName(metadataSafari, version, 'safariextz')) |
- packagerSafari.createBuild(baseDir, type='safari', outFile=buildPathSafari, releaseBuild=True, keyFile=keyFiles[1]) |
- downloads.append(buildPathSafari) |
# Create source archive |
archivePath = os.path.splitext(buildPath)[0] + '-source.tgz' |