Building Release Version
Compile the Rust project using: cargo build --release
Windows Packaging
Prerequisites:
- Rust toolchain
- Inno Setup installer
Build steps:
- Remove the comment from
// #![windows_subsystem = "windows"]in main.rs - Execute
cargo build --release - Place sciter.dll and the compiled executable in the same directory
- Launch Inno Setup and create a new script file
Inno Setup configuration:
; Sample configuration snippet
[Setup]
AppName=BS Redis Desktop Client
AppVersion=1.0.0
DefaultDirName={pf}\BSRDC
OutputDir=output
OutputBaseFilename=BSRDC_Setup
[Files]
Source: "target\release\bs.exe"; DestDir: "{app}"
Source: "sciter.dll"; DestDir: "{app}"
Complete the setup wizard, compile the script, and the installer will be generated in the specified output directory.
macOS Packaging
Prerequisites:
- Rust toolchain
- Application icon in .icns format (512px PNG recomemnded)
Application bundle structure:
BSRDC.app/
├── Contents/
│ ├── Frameworks/
│ │ └── libsciter.dylib
│ ├── Info.plist
│ ├── MacOS/
│ │ └── bs
│ └── Resources/
│ └── icon.icns
Sample Info.plist configuration:
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>bs</string>
<key>CFBundleIconFile</key>
<string>icon.icns</string>
<key>CFBundleIdentifier</key>
<string>com.example.bsrdc</string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>
Creating DMG distribution:
- Create blank disk image using Disk Utilitty
- Copy application bundle and Applications folder alias to the image
- Eject and convert the image to compressed format