Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: packagerSafari.py

Issue 6116696976785408: Issue 1590 - Add devenv support for Safari (Closed)
Patch Set: Created Nov. 21, 2014, 10:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packagerChrome.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packagerSafari.py
===================================================================
--- a/packagerSafari.py
+++ b/packagerSafari.py
@@ -203,7 +203,7 @@
finally:
os.unlink(signature_filename)
-def createBuild(baseDir, type, outFile=None, buildNum=None, releaseBuild=False, keyFile=None):
+def createBuild(baseDir, type, outFile=None, buildNum=None, releaseBuild=False, keyFile=None, devenv=False):
metadata = readMetadata(baseDir, type)
version = getBuildVersion(baseDir, metadata, releaseBuild, buildNum)
@@ -215,7 +215,7 @@
'baseDir': baseDir,
'releaseBuild': releaseBuild,
'version': version,
- 'devenv': False,
+ 'devenv': devenv,
'metadata': metadata,
}
@@ -247,11 +247,13 @@
fixAbsoluteUrls(files)
- dirname = metadata.get('general', 'basename') + '.safariextension'
- for filename in files.keys():
- files[os.path.join(dirname, filename)] = files.pop(filename)
+ if not devenv:
+ dirname = metadata.get('general', 'basename') + '.safariextension'
+ for filename in files.keys():
+ files[os.path.join(dirname, filename)] = files.pop(filename)
- if keyFile:
- createSignedXarArchive(outFile, files, keyFile)
- else:
- files.zip(outFile)
+ if keyFile:
+ createSignedXarArchive(outFile, files, keyFile)
+ return
+
+ files.zip(outFile)
« no previous file with comments | « packagerChrome.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld