-
Notifications
You must be signed in to change notification settings - Fork 2
CodeSpells exe Launcher Installer
The code for the Launcher Installer is in a lightweight Racket file in your locally cloned Nexus repo found at: nexus/nexus-client/Installer/CodeSpells.rkt
. DO NOT ADD STUFF TO THIS FILE, unless absolutely necessary. Most logic for the Launcher should be in CodeSpells Launcher Logic, which this program fetches from AWS.
This Launcher Installer is distributed as a signed exe file, and many users may think of this file as CodeSpells itself, since its the first and only exe downloaded from the CodeSpells website. It takes the user through a traditional wizard installation of the CodeSpells Launcher. The CodeSpells Launcher is what actually downloads versions of CodeSpells and manages them for the user.
- You really shouldn't be developing on this, but if you absolutely must... Edit the code here:
nexus/nexus-client/Installer/CodeSpells.rkt
- Generate the executable by running
raco exe --gui --ico cs-icon.ico ++lib racket/gui .\CodeSpells.rkt
- Generate a distribution folder containing the exe by running
raco distribute CodeSpells .\CodeSpells.exe
- Now, use InnoSetup to package up the distribution folder as a single exe:
- Reference the InnoSetup script currently in the Nexus repository here for more details about how to configure the setup:
nexus/nexus-client/Installer/InnoSetupInstaller/ino-setup-script
- To sign the executable generated by InnoSetup, you need access to a special private key and certificate:
osslsigncode sign -certs CollectCCC -key codespells.key -n "CodeSpells" -i "https://codespells.org" -in CodeSpells.exe -out CodeSpells-signed.exe
. The code signing certificate was purchased from Comodo and involved an annoying verification process.
Upload the signed executable to AWS S3 at: s3://codespells-org/Nexus/Installer/CodeSpells.exe