Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit a8eb3b4

Browse files
authored
Fix winget PR issue (#934)
Co-authored-by: Hien To <[email protected]>
1 parent 82c2b55 commit a8eb3b4

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/cortex-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,14 @@ jobs:
362362
name: Code Signing Windows
363363
if: runner.os == 'Windows'
364364

365+
- name: Update version in installer.iss using sed
366+
if: runner.os == 'Windows'
367+
shell: bash
368+
run: |
369+
cd cortex-js
370+
sed -i "s/AppVersion=1.0/AppVersion=${{ needs.create-draft-release.outputs.version }}/g" installer.iss
371+
cat installer.iss
372+
365373
- name: Compile .ISS to .EXE Installer
366374
uses: Minionguyjpro/[email protected]
367375
if: runner.os == 'Windows'

cortex-js/installer.iss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
; Inno Setup Script
22
; Define the application name, version, and other details
33
[Setup]
4-
AppName=Cortex
4+
AppName=Cortexso
55
AppVersion=1.0
6-
DefaultDirName={pf}\Cortex
7-
DefaultGroupName=Cortex
6+
DefaultDirName={pf}\Cortexso
7+
DefaultGroupName=Cortexso
88
OutputDir=.
99
OutputBaseFilename=setup
1010
Compression=lzma
@@ -21,12 +21,12 @@ Source: "cortex.exe"; DestDir: "{app}"; Flags: ignoreversion
2121

2222
; Define the icons to be created
2323
[Icons]
24-
Name: "{group}\Cortex"; Filename: "{app}\cortex.exe"
24+
Name: "{group}\Cortexso"; Filename: "{app}\cortex.exe"
2525

2626
; Define the run section to execute the application after installation
2727
[Run]
2828
Filename: "cmd"; Parameters: "/c setx PATH ""%PATH%;{app}"""; StatusMsg: "Updating system PATH environment variable..."; Flags: runhidden
29-
Filename: "{app}\cortex.exe"; Description: "{cm:LaunchProgram,Cortex}"; Flags: nowait postinstall skipifsilent
29+
Filename: "{app}\cortex.exe"; Description: "{cm:LaunchProgram,Cortexso}"; Flags: nowait postinstall skipifsilent
3030

3131
; Define the tasks section (optional, for additional tasks like creating desktop icons)
3232
[Tasks]
@@ -35,5 +35,5 @@ Name: "quicklaunchicon"; Description: "Create a &Quick Launch icon"; GroupDescri
3535

3636
; Define icons for the additional tasks
3737
[Icons]
38-
Name: "{commondesktop}\Cortex"; Filename: "{app}\cortex.exe"; Tasks: desktopicon
39-
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Cortex"; Filename: "{app}\cortex.exe"; Tasks: quicklaunchicon
38+
Name: "{commondesktop}\Cortexso"; Filename: "{app}\cortex.exe"; Tasks: desktopicon
39+
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Cortexso"; Filename: "{app}\cortex.exe"; Tasks: quicklaunchicon

0 commit comments

Comments
 (0)