Improve make_installer.bat script so that it works in the build dir, and outputs into the dist dir

This commit is contained in:
Micah Lee 2020-02-20 11:51:06 -08:00
parent 72de53c0c0
commit 2ae39db1c1
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
4 changed files with 29 additions and 8 deletions

5
.gitignore vendored
View file

@ -131,7 +131,4 @@ dmypy.json
.vscode
*.tar.gz
deb_dist
.DS_Store
install/windows/Dangerzone.msi
install/windows/Dangerzone.wixobj
install/windows/Dangerzone.wixpdb
.DS_Store

View file

@ -23,6 +23,11 @@ if p == "Darwin":
else:
datas = [("../../share", "share")]
if p == "Windows":
icon = os.path.join(root, "install", "windows", "dangerzone.ico")
else:
icon = None
a = Analysis(
["dangerzone"],
pathex=["."],
@ -48,6 +53,7 @@ exe = EXE(
strip=False,
upx=True,
console=False,
icon=icon,
)
coll = COLLECT(

View file

@ -6,7 +6,7 @@
<Package Id="*" Keywords="Installer" Description="Dangerzone $(var.ProductVersion) Installer" Manufacturer="First Look Media" InstallerVersion="100" Languages="1033" Compressed="yes" SummaryCodepage="1252" />
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
<Icon Id="ProductIcon" SourceFile="dangerzone.ico"/>
<Icon Id="ProductIcon" SourceFile="..\..\install\windows\dangerzone.ico"/>
<Property Id="ARPPRODUCTICON" Value="ProductIcon"/>
<Property Id="ARPHELPLINK" Value="https://github.com/firstlookmedia/dangerzone"/>
<Property Id="ARPURLINFOABOUT" Value="https://tech.firstlook.media"/>

View file

@ -1,3 +1,21 @@
candle Dangerzone.wxs
light Dangerzone.wixobj
@pause
REM delete old dist and build files
rmdir /s /q dist
rmdir /s /q build
REM build the exe with pyinstaller
pyinstaller install\pyinstaller\pyinstaller.spec
REM TODO: code sign dangerzone.exe
REM build the msi package
cd build
mkdir wix
cd wix
candle.exe ..\..\install\windows\Dangerzone.wxs
light.exe -ext WixUIExtension Dangerzone.wixobj
REM TODO: code sign dangerzone.msi
REM moving dangerzone.msi to dist
cd ..\..
move build/wix/Dangerzone.msi dist