OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 import sys, os, re, subprocess | 3 import sys, os, re, subprocess |
4 | 4 |
5 if len(sys.argv) < 2: | 5 if len(sys.argv) < 2: |
6 print >>sys.stderr, "Please add a command line parameter with the path of the
signing key file" | 6 print >>sys.stderr, "Please add a command line parameter with the path of the
signing key file" |
7 sys.exit(1) | 7 sys.exit(1) |
8 | 8 |
9 basedir = os.path.dirname(os.path.abspath(sys.argv[0])) | 9 basedir = os.path.dirname(os.path.abspath(sys.argv[0])) |
10 key = sys.argv[1] | 10 key = sys.argv[1] |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 "/p:Configuration=Release Test", | 62 "/p:Configuration=Release Test", |
63 platform | 63 platform |
64 ], env=buildParams) | 64 ], env=buildParams) |
65 | 65 |
66 plugin = {"ia32": "AdblockPlus.dll", "x64": "AdblockPlusx64.dll"}[arch] | 66 plugin = {"ia32": "AdblockPlus.dll", "x64": "AdblockPlusx64.dll"}[arch] |
67 sign(os.path.join(basedir, "build", arch, "Release Test", plugin), | 67 sign(os.path.join(basedir, "build", arch, "Release Test", plugin), |
68 os.path.join(basedir, "build", arch, "Release Test", "AdblockPlusEngine.ex
e")) | 68 os.path.join(basedir, "build", arch, "Release Test", "AdblockPlusEngine.ex
e")) |
69 | 69 |
70 installerParams = os.environ.copy() | 70 installerParams = os.environ.copy() |
71 installerParams["VERSION"] = version | 71 installerParams["VERSION"] = version |
72 subprocess.call(["nmake", "/A"], env=installerParams, cwd=os.path.join(basedir,
"WixInstaller")) | 72 subprocess.call(["nmake", "/A"], env=installerParams, cwd=os.path.join(basedir,
"installer")) |
73 sign(os.path.join(basedir, "build", "ia32", "adblockplusie-%s-en-us-ia32.msi" %
version), | 73 sign(os.path.join(basedir, "build", "ia32", "adblockplusie-%s-en-us-ia32.msi" %
version), |
74 os.path.join(basedir, "build", "x64", "adblockplusie-%s-en-us-x64.msi" % ver
sion)) | 74 os.path.join(basedir, "build", "x64", "adblockplusie-%s-en-us-x64.msi" % ver
sion)) |
OLD | NEW |