Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
inno setup for windows gui
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliusJacobitz committed May 29, 2021
1 parent 25360dd commit 996a6ca
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
pip install -r requirements.txt
- name: Build Windows
run: pyinstaller --clean --noconfirm specs/windows-terminservice.spec
- name: Build Windows GUI
run: pyinstaller --clean --noconfirm specs/windows-terminservice-gui.spec
build-linux:
runs-on: ubuntu-latest
steps:
Expand Down
41 changes: 35 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
steps:
- name: Checkout
uses: actions/[email protected]
- name: tagname
uses: olegtarasov/[email protected]

- name: Setup Python
uses: actions/[email protected]
with:
Expand All @@ -24,33 +27,57 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Windows
run: pyinstaller --clean --noconfirm specs/windows-terminservice.spec
- name: Build Windows GUI
run: pyinstaller --clean --noconfirm specs/windows-terminservice-gui.spec

- name: Chocolatey install innosetup
uses: crazy-max/[email protected]
with:
# Arguments to pass to Chocolatey
args: install innosetup --install-arguments="'/DIR=../innosetup'" --force
- name: tagname
uses: olegtarasov/[email protected]
- name: Run innosetup

- name: Innosetup windows-terminservice
# Run innosetup and set application version to git tag
run: ../innosetup/ISCC.exe specs/windows-terminservice.iss /DApplicationVersion=${{ env.GIT_TAG_NAME }}
- name: Zip
- name: Innosetup windows-terminservice-gui
# Run innosetup and set application version to git tag
run: ../innosetup/ISCC.exe specs/windows-terminservice-gui.iss /DApplicationVersion=${{ env.GIT_TAG_NAME }}

- name: Zip Windows
uses: papeloto/action-zip@v1
with:
files: dist/
files: dist/windows-terminservice
dest: vaccipy-windows.zip
- name: Zip Windows gui
uses: papeloto/action-zip@v1
with:
files: dist/windows-terminservice-gui
dest: vaccipy-windows-gui.zip

- name: Store windows zip as build artifact
uses: actions/upload-artifact@v2
with:
name: vaccipy-windows
path: vaccipy-windows.zip
- name: Store windows gui zip as build artifact
uses: actions/upload-artifact@v2
with:
name: vaccipy-windows-gui
path: vaccipy-windows-gui.zip

- name: Store windows installer as build artifact
uses: actions/upload-artifact@v2
with:
name: vaccipy-windows-installer
path: installers/vaccipy_installer.exe
- name: Store windows gui installer as build artifact
uses: actions/upload-artifact@v2
with:
name: vaccipy-windows-gui-installer
path: installers/vaccipy_gui_installer.exe

build-linux:
runs-on: ubuntu-latest
Expand All @@ -72,7 +99,7 @@ jobs:
with:
files: dist/
dest: vaccipy-ubuntu.zip
- name: Store windows build artifact
- name: Store ubuntu build artifact
uses: actions/upload-artifact@v2
with:
name: vaccipy-ubuntu
Expand All @@ -90,5 +117,7 @@ jobs:
prerelease: false
files: |
vaccipy-windows-installer/vaccipy_installer.exe
vaccipy-windows-gui-installer/vaccipy_gui_installer.exe
vaccipy-windows/vaccipy-windows.zip
vaccipy-windows-gui/vaccipy-windows-gui.zip
vaccipy-ubuntu/vaccipy-ubuntu.zip
55 changes: 55 additions & 0 deletions specs/windows-terminservice-gui.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
; Script generated by the Inno Script Studio Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Vaccipy GUI"

#ifndef ApplicationVersion
#define ApplicationVersion "0.1"
#endif

#define MyAppPublisher "vaccipy"
#define MyAppURL "https://github.com/iamnotturner/vaccipy"
#define MyAppExeName "windows-terminservice-gui.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{E8DD1F42-66E8-47F6-8B1F-CBC47CDC78BE}
AppName={#MyAppName}
AppVersion={#ApplicationVersion}
;AppVerName={#MyAppName} {#ApplicationVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\vaccipy_gui
DisableDirPage=yes
DefaultGroupName={#MyAppName}
OutputDir=../installers
OutputBaseFilename=vaccipy_gui_installer
SetupIconFile=../images/spritze.ico
Compression=lzma
SolidCompression=yes

[Languages]
Name: "german"; MessagesFile: "compiler:Languages\German.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "..\dist\windows-terminservice-gui\windows-terminservice-gui.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\dist\windows-terminservice-gui\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

[Dirs]
Name: "{app}\data"; Flags: uninsalwaysuninstall; Permissions: users-modify
Name: "{app}\tools\log"; Flags: uninsalwaysuninstall; Permissions: users-modify
1 change: 1 addition & 0 deletions specs/windows-terminservice.iss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir=../installers
OutputBaseFilename=vaccipy_installer
SetupIconFile=../images/spritze.ico
Compression=lzma
SolidCompression=yes

Expand Down

0 comments on commit 996a6ca

Please sign in to comment.