Skip to content

Commit 26fed84

Browse files
Merge pull request #16 from Ashraf-Khabar/create-the-installer-for-the-app
Publish the installer version, and adding github action to publish th…
2 parents 93f05ba + 3b53d18 commit 26fed84

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,8 @@ jobs:
4141
- name: Compile Inno Setup
4242
shell: pwsh
4343
run: |
44-
# On vérifie si le fichier existe avant de compiler
45-
if (Test-Path "installer_script.iss") {
46-
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "installer_script.iss"
47-
} else {
48-
Write-Error "Fichier installer_script.iss introuvable à la racine !"
49-
exit 1
50-
}
44+
$ver = "${{ steps.get_version.outputs.VERSION }}"
45+
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DMyAppVersion=$ver "installer_script.iss"
5146
5247
- name: Create Release
5348
uses: softprops/action-gh-release@v1

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ Output/
1717
# IDE
1818
.vscode/
1919
.idea/
20+
21+
build/
22+
dist/
23+
Output/
24+
*.spec
25+
run.py

installer_script.iss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
#define MyAppName "BulkFolder"
2-
; Récupère la version de l'EXE généré par PyInstaller
3-
#define MyAppVersion GetFileVersion("dist\BulkFolder\BulkFolder.exe")
42
#define MyAppPublisher "BulkFolder Contributors"
3+
; La version sera injectée par la ligne de commande GitHub
4+
#ifndef MyAppVersion
5+
#define MyAppVersion "1.0.0"
6+
#endif
57

68
[Setup]
9+
AppId={{votre-guid-ici}}
710
AppName={#MyAppName}
811
AppVersion={#MyAppVersion}
912
AppPublisher={#MyAppPublisher}
1013
DefaultDirName={autopf}\{#MyAppName}
1114
DefaultGroupName={#MyAppName}
12-
; L'emplacement de sortie doit correspondre à votre GitHub Action
1315
OutputDir=Output
1416
OutputBaseFilename=BulkFolder_Setup
1517
SetupIconFile=src\assets\logo.ico
@@ -22,9 +24,7 @@ ArchitecturesInstallIn64BitMode=x64
2224
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
2325

2426
[Files]
25-
; Inclut l'exécutable principal
2627
Source: "dist\BulkFolder\BulkFolder.exe"; DestDir: "{app}"; Flags: ignoreversion
27-
; Inclut tout le dossier _internal (Python + dépendances)
2828
Source: "dist\BulkFolder\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
2929

3030
[Icons]

0 commit comments

Comments
 (0)