Skip to content

Commit cb55bfb

Browse files
committed
+ Installer
1 parent 78559d3 commit cb55bfb

File tree

7 files changed

+85
-7
lines changed

7 files changed

+85
-7
lines changed

.github/workflows/build_release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ name: Build application on release
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+*'
77

88
jobs:
99
build:
10-
1110
runs-on: windows-latest
12-
1311
steps:
1412
- uses: actions/checkout@v2
1513
- name: Set up Python
@@ -31,11 +29,18 @@ jobs:
3129
with:
3230
files: dist/main/
3331
dest: BulkStartStop_portable.zip
34-
32+
33+
- name: Build Installer
34+
run: |
35+
"%programfiles(x86)%\Inno Setup 6\iscc.exe" /dMyAppVersion="${{ github.ref_name }}" "setup/BulkStartStopSetup.iss"
36+
shell: cmd
37+
3538
- name: Create Release
3639
uses: softprops/action-gh-release@v1
3740
env:
3841
GITHUB_TOKEN: ${{ github.token }}
3942
with:
40-
name: Release ${{ github.ref_name }}
41-
files: BulkStartStop_portable.zip
43+
name: Release v${{ github.ref_name }}
44+
files: |
45+
BulkStartStop_portable.zip
46+
setup/BulkStartStop_setup.exe

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,3 +315,5 @@ $RECYCLE.BIN/
315315

316316
# End of https://www.toptal.com/developers/gitignore/api/python,pycharm+all,windows,git,venv
317317
/logs/Client.txt
318+
/exe/*
319+
/setup/BulkStartStop_setup.exe

setup/BulkStartStopSetup.iss

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
; Script generated by the Inno Setup Script Wizard.
2+
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3+
4+
#define MyAppName "BulkStartStop"
5+
;#define MyAppVersion "1.0.1"
6+
#define MyAppPublisher "MaxBQb"
7+
#define MyAppURL "https://github.com/MBQbUtils/BulkStartStop"
8+
#define MyAppExeName "BulkStartStop.exe"
9+
#define Style "Carbon.vsf"
10+
; Dark Theme setup: https://theroadtodelphi.com/2013/12/11/vcl-styles-for-inno-setup/
11+
12+
[Setup]
13+
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
14+
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
15+
AppId={{A167951A-77A3-4211-9DBF-D36DA5254DBB}
16+
AppName={#MyAppName}
17+
AppVersion={#MyAppVersion}
18+
VersionInfoVersion={#MyAppVersion}
19+
;AppVerName={#MyAppName} {#MyAppVersion}
20+
AppPublisher={#MyAppPublisher}
21+
AppPublisherURL={#MyAppURL}
22+
AppSupportURL={#MyAppURL}
23+
AppUpdatesURL={#MyAppURL}
24+
DefaultDirName={autopf}\{#MyAppName}
25+
DisableProgramGroupPage=yes
26+
LicenseFile=..\LICENCE.md
27+
; Uncomment the following line to run in non administrative install mode (install for current user only.)
28+
PrivilegesRequired=admin
29+
OutputDir=.
30+
OutputBaseFilename=BulkStartStop_setup
31+
Compression=lzma
32+
SolidCompression=yes
33+
WizardImageFile=WizModernImage-IS_BW.bmp
34+
WizardSmallImageFile=WizModernSmallImage-IS_BW.bmp
35+
36+
[Languages]
37+
Name: "english"; MessagesFile: "compiler:Default.isl"
38+
39+
[Tasks]
40+
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
41+
42+
[Files]
43+
Source: .\VclStylesinno.dll; DestDir: {app}; Flags: dontcopy
44+
Source: .\Styles\{#Style}; DestDir: {app}; Flags: dontcopy
45+
Source: "..\dist\main\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
46+
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
47+
48+
[Code]
49+
// Import the LoadVCLStyle function from VclStylesInno.DLL
50+
procedure LoadVCLStyle(VClStyleFile: String); external 'LoadVCLStyleW@files:VclStylesInno.dll stdcall';
51+
// Import the UnLoadVCLStyles function from VclStylesInno.DLL
52+
procedure UnLoadVCLStyles; external 'UnLoadVCLStyles@files:VclStylesInno.dll stdcall';
53+
54+
function InitializeSetup(): Boolean;
55+
begin
56+
ExtractTemporaryFile('{#Style}');
57+
LoadVCLStyle(ExpandConstant('{tmp}\{#Style}'));
58+
Result := True;
59+
end;
60+
61+
procedure DeinitializeSetup();
62+
begin
63+
UnLoadVCLStyles;
64+
end;
65+
66+
[Icons]
67+
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
68+
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
69+
70+
[Run]
71+
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait runascurrentuser postinstall skipifsilent

setup/Styles/Carbon.vsf

48.1 KB
Binary file not shown.

setup/VclStylesinno.dll

2.98 MB
Binary file not shown.

setup/WizModernImage-IS_BW.bmp

51.3 KB
Binary file not shown.

setup/WizModernSmallImage-IS_BW.bmp

4.06 KB
Binary file not shown.

0 commit comments

Comments
 (0)