Skip to content

Commit a64b71b

Browse files
committed
windows: update installer creation script
1. update app name 2. Add preparation script 3. bump version
1 parent 07445f5 commit a64b71b

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,20 @@ cp 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.40
110110
cp 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.40.33807\x64\Microsoft.VC143.CRT\vcruntime140_1.dll' .\build\windows\x64\runner\Release\
111111
```
112112

113+
run preparation script
114+
```console
115+
.\installers\windows\prepare.bat
116+
```
113117

114118
Run Inno Setup, our working dir is `build\windows\x64\runner\Release`:
115-
- myceliumflut.exe as the application main executable
119+
- mycelium-network.exe as the application main executable (it is renamed from the original myceliumflut.exe)
116120
- `add file(s)` and add all `.dll` files
117121
- `add folder` and add `data` folder with it's subdirectories
118122

119123
Scroll down the list & select the `data` folder path and click on `Edit…` button.
120124
It is important to ensure that the destination sub-folder has the same name `data` otherwise the app wont run after installation as all contents of the folder are dispersed outside. So, enter the name of the `Destination subfolder` as `data` and click `OK`.
121125

122-
The Inno Setup script can be found [here](./files/windows_installer.iss), you need to modify the path (according to your env) before `Build` it on `Inno Setup` app.
126+
The Inno Setup script can be found [here](./installer/windows/myceliumflut_innosetup.iss), you need to modify the path (according to your env) before `Build` it on `Inno Setup` app.
123127

124128

125129

files/windows_installer.iss renamed to installers/windows/myceliumflut_innosetup.iss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
; Script generated by the Inno Setup Script Wizard.
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

4-
#define MyAppName "Myceliumflut"
5-
#define MyAppVersion "0.8.0"
4+
#define MyAppName "mycelium-network"
5+
#define MyAppVersion "0.8.2"
66
#define MyAppPublisher "Threefold Tech"
77
#define MyAppURL "https://github.com/threefoldtech/myceliumflut"
8-
#define MyAppExeName "myceliumflut.exe"
8+
#define MyAppExeName "mycelium-network.exe"
99

1010
[Setup]
1111
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
@@ -24,7 +24,7 @@ DisableProgramGroupPage=yes
2424
;PrivilegesRequired=lowest
2525
PrivilegesRequiredOverridesAllowed=commandline
2626
OutputDir=C:\Users\Administrator\installer
27-
OutputBaseFilename=myceliumflut-x86_64
27+
OutputBaseFilename=mycelium-network-x86_64_v0.8.2
2828
Compression=lzma
2929
SolidCompression=yes
3030
WizardStyle=modern
@@ -45,6 +45,7 @@ Source: "C:\Users\Administrator\baru\myceliumflut\build\windows\x64\runner\Relea
4545
Source: "C:\Users\Administrator\baru\myceliumflut\build\windows\x64\runner\Release\msvcp140_2.dll"; DestDir: "{app}"; Flags: ignoreversion
4646
Source: "C:\Users\Administrator\baru\myceliumflut\build\windows\x64\runner\Release\vcruntime140.dll"; DestDir: "{app}"; Flags: ignoreversion
4747
Source: "C:\Users\Administrator\baru\myceliumflut\build\windows\x64\runner\Release\vcruntime140_1.dll"; DestDir: "{app}"; Flags: ignoreversion
48+
Source: "C:\Users\Administrator\baru\myceliumflut\wintun.dll"; DestDir: "{app}"; Flags: ignoreversion
4849
Source: "C:\Users\Administrator\baru\myceliumflut\build\windows\x64\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs
4950
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
5051

installers/windows/prepare.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mv .\build\windows\x64\runner\Release\myceliumflut.exe .\build\windows\x64\runner\Release\mycelium-network.exe

0 commit comments

Comments
 (0)