feat: Add redist to windows installer

This commit is contained in:
Konstiantin Ullrich 2025-06-26 13:13:46 +02:00
parent 65bb917bfb
commit 494b788340
No known key found for this signature in database
GPG key ID: 90A31CD78D842B2C
4 changed files with 35 additions and 2 deletions

View file

@ -150,6 +150,7 @@ dev_dependencies:
git:
url: https://github.com/cake-tech/google-translator.git
version: 1.0.0
msix: ^3.16.9
dependency_overrides:
bech32:
@ -221,3 +222,12 @@ flutter:
- asset: assets/fonts/Lato-Medium.ttf
- asset: assets/fonts/Lato-Semibold.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

View file

@ -1 +1,2 @@
actions-runner
vc_redist.x64.exe

21
scripts/windows/README.md Normal file
View 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.

View file

@ -33,6 +33,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{
[Files]
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
[Icons]
@ -40,5 +41,5 @@ Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[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