Commit 1d9b90f0 authored by Nils Cedric Holle's avatar Nils Cedric Holle

Hopefully working automatic installer creation

parent 0771dd63
......@@ -24,3 +24,4 @@ testproject/*
htmlcov/*
standalone-windows/python-windows/*
standalone-windows/*.zip
standalone-windows/Puzzlestream-inst.exe
......@@ -18,7 +18,7 @@ test:
paths:
- htmlcov/
only:
- master
- tags
deploy_production:
stage: deploy
......@@ -36,10 +36,17 @@ deploy_production:
- sphinx-apidoc -o . ../puzzlestream -f -P -M -e
- sphinx-build -b html . _build
# - pyftpsync upload ./_build ftps://$FTP_USERNAME:$FTP_PASSWORD@puzzlestream.org
- apt-get install wget wine-stable unzip -y
- apt-get install wget wine-stable nsis unzip -y
- cd standalone-windows
- wget https://git.rwth-aachen.de/puzzlestream/PuzzlestreamStandalone/raw/master/python-amd64.zip
- unzip python-amd64.zip -d python-windows
- wine python-windows/python.exe -m pip install --upgrade puzzlestream
- makensis installer.nsi
- pyftpsync upload ./Puzzlestream-inst.exe ftps://$FTP_USERNAME:$FTP_PASSWORD@puzzlestream.org
artifacts:
paths:
- dist/
- doc/
- standalone-windows/Puzzlestream-inst.exe
only:
- tags
::[Bat To Exe Converter]
::
::YAwzoRdxOk+EWAjk
::fBw5plQjdCqDJGmR7lg8LShAXgGDMViuB7sY6eT04e+7klgHTu46a5vJ37WDHPAG8F/ocIU5xH9blfcFDxRWbS6bexUupWtRonaANsrSugzuKg==
::fBw5plQjdCyDJGyX8VAjFBVcQwiOOVeeCbYJ5e31+/m7klgHTu46a5vJ37WDHPAG8F/ocIU5xH9blfcFDxRWbS6bexUupWtRonaANsrSugzuKg==
::YAwzuBVtJxjWCl3EqQJgSA==
::ZR4luwNxJguZRRnk
::Yhs/ulQjdF+5
::cxAkpRVqdFKZSzk=
::cBs/ulQjdF+5
::ZR41oxFsdFKZSTk=
::ZR41oxFsdFKZSDk=
::eBoioBt6dFKZSDk=
::cRo6pxp7LAbNWATEpCI=
::egkzugNsPRvcWATEpCI=
......@@ -26,8 +26,8 @@
::ZQ0/vhVqMQ3MEVWAtB9wSA==
::Zg8zqx1/OA3MEVWAtB9wSA==
::dhA7pRFwIByZRRnk
::Zh4grVQjdCqDJGmR7lg8LShAXgGDMViuB7sY6eT04e+7klgHTu46a5vJ37WDbuUL7yU=
::YB416Ek+Zm8=
::Zh4grVQjdCyDJGyX8VAjFBVcQwiOOVeeCbYJ5e31+/m7klgHTu46a5vJ37WDHPMH60vgdJoi2H8Xj8ICCBRPbS6bexUupWtRonaANsrSthfkKg==
::YB416Ek+ZG8=
::
::
::978f952a14a936cc963da21a135fa983
......
......@@ -3,27 +3,27 @@
!include MUI2.nsh
# define name of installer
OutFile "Puzzlestream-0.8.1.exe"
OutFile "Puzzlestream-inst.exe"
# For removing Start Menu shortcut in Windows 7
RequestExecutionLevel admin
RequestExecutionLevel user
;--------------------------------
;Folder selection page
!define MUI_PRODUCT "Puzzlestream"
InstallDir "$PROGRAMFILES64\${MUI_PRODUCT}"
InstallDir "$PROFILE\AppData\Local\Programs\${MUI_PRODUCT}"
# MUI configuration
!define MUI_COMPONENTSPAGE_SMALLDESC ;No value
!define MUI_INSTFILESPAGE_COLORS "323232 FFFFFF" ;Two colors
!define MUI_ICON ".\site-packages\puzzlestream\icons\Puzzlestream.ico"
!define MUI_UNICON ".\site-packages\puzzlestream\icons\Puzzlestream.ico"
!define MUI_ICON ".\python-windows\Lib\site-packages\puzzlestream\icons\Puzzlestream.ico"
!define MUI_UNICON ".\python-windows\Lib\site-packages\puzzlestream\icons\Puzzlestream.ico"
!define MUI_WELCOMEPAGE_TITLE "Puzzlestream installer"
!define MUI_WELCOMEPAGE_TEXT "Welcome to Puzzlestream!"
!define MUI_LICENSEPAGE_TEXT_TOP "Please agree to the Puzzlestream license (MIT):"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE ".\python-windows\Lib\site-packages\puzzlestream-0.8.1.dist-info\LICENSE.txt"
!insertmacro MUI_PAGE_LICENSE "..\LICENSE.txt"
; !insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
......@@ -56,9 +56,9 @@ Section
CreateShortCut "$SMPROGRAMS\Puzzlestream\Puzzlestream.lnk" "$INSTDIR\Puzzlestream.exe"
# register
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlestream" \
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlestream" \
"DisplayName" "Puzzlestream"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlestream" \
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlestream" \
"UninstallString" "$\"$INSTDIR\uninstall.exe$\""
SectionEnd
......@@ -72,13 +72,13 @@ Section "uninstall"
Delete "$SMPROGRAMS\Puzzlestream\Uninstall.lnk"
# unregister
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlestream"
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlestream"
# uninstaller section end
SectionEnd
Function .onInit
ReadRegStr $R0 HKLM \
ReadRegStr $R0 HKCU \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" \
"UninstallString"
StrCmp $R0 "" done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment