Packaging BS Redis Desktop Client for Distribution

Building Release Version

Compile the Rust project using: cargo build --release

Windows Packaging

Prerequisites:

  • Rust toolchain
  • Inno Setup installer

Build steps:

  1. Remove the comment from // #![windows_subsystem = "windows"] in main.rs
  2. Execute cargo build --release
  3. Place sciter.dll and the compiled executable in the same directory
  4. 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:

  1. Create blank disk image using Disk Utilitty
  2. Copy application bundle and Applications folder alias to the image
  3. Eject and convert the image to compressed format

Tags: rust Sciter Inno Setup DMG Desktop Application

Posted on Sat, 23 May 2026 21:42:16 +0000 by keeps21