mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
feat: Add redist to windows installer
This commit is contained in:
parent
65bb917bfb
commit
494b788340
4 changed files with 35 additions and 2 deletions
|
@ -150,6 +150,7 @@ dev_dependencies:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/cake-tech/google-translator.git
|
url: https://github.com/cake-tech/google-translator.git
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
msix: ^3.16.9
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
bech32:
|
bech32:
|
||||||
|
@ -221,3 +222,12 @@ flutter:
|
||||||
- asset: assets/fonts/Lato-Medium.ttf
|
- asset: assets/fonts/Lato-Medium.ttf
|
||||||
- asset: assets/fonts/Lato-Semibold.ttf
|
- asset: assets/fonts/Lato-Semibold.ttf
|
||||||
- asset: assets/fonts/Lato-Bold.ttf
|
- asset: assets/fonts/Lato-Bold.ttf
|
||||||
|
|
||||||
|
msix_config:
|
||||||
|
display_name: Cake Wallet
|
||||||
|
publisher_display_name: Cake Labs
|
||||||
|
identity_name: com.cakewallet.wallet
|
||||||
|
msix_version: 1.0.0.1
|
||||||
|
logo_path: assets/images/app_logo.png
|
||||||
|
trim_logo: false
|
||||||
|
capabilities: internetClient
|
||||||
|
|
3
scripts/windows/.gitignore
vendored
3
scripts/windows/.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
actions-runner
|
actions-runner
|
||||||
|
vc_redist.x64.exe
|
||||||
|
|
21
scripts/windows/README.md
Normal file
21
scripts/windows/README.md
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Windows Build Instructions
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
Before building the Windows installer, make sure you have the following prerequisites:
|
||||||
|
|
||||||
|
1. Inno Setup installed on your system
|
||||||
|
2. Microsoft Visual C++ Redistributable for Visual Studio 2022 (x64) installer
|
||||||
|
|
||||||
|
## Downloading the VC++ Redistributable Installer
|
||||||
|
|
||||||
|
The Windows installer requires the Microsoft Visual C++ Redistributable for Visual Studio 2022 (x64) installer. You need to download it from Microsoft's website and place it in the same directory as the Inno Setup script (`build_exe_installer.iss`).
|
||||||
|
|
||||||
|
1. Download the VC++ Redistributable installer from: https://aka.ms/vs/17/release/vc_redist.x64.exe
|
||||||
|
2. Save the file as `vc_redist.x64.exe` in the `scripts\windows` directory
|
||||||
|
|
||||||
|
## Building the Installer
|
||||||
|
|
||||||
|
Once you have downloaded the VC++ Redistributable installer, you can build the Windows installer by running the Inno Setup script.
|
||||||
|
|
||||||
|
The installer will include the VC++ Redistributable and install it during the Cake Wallet installation process.
|
|
@ -33,6 +33,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "..\..\build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
Source: "..\..\build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
|
Source: "vc_redist.x64.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
|
@ -40,5 +41,5 @@ Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
||||||
|
|
||||||
[Run]
|
[Run]
|
||||||
|
Filename: "{tmp}\vc_redist.x64.exe"; Parameters: "/install /quiet /norestart"; StatusMsg: "Installing VC++ Redistributable..."; Flags: waituntilterminated
|
||||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue