2023-10-05 06:49:14 +00:00
|
|
|
# WINDOWS
|
2023-02-11 22:00:41 +00:00
|
|
|
|
|
|
|
Prerequisite for packaging:
|
|
|
|
|
|
|
|
* You need Wix 4 tools installed, probably with DOTNET installed first.
|
|
|
|
|
2023-02-20 05:18:54 +00:00
|
|
|
Compile:
|
|
|
|
|
2023-10-05 22:33:01 +00:00
|
|
|
````dos
|
2023-10-05 06:34:39 +00:00
|
|
|
rustup update
|
|
|
|
cargo build --features=lang-cjk --release
|
|
|
|
````
|
2023-02-20 05:18:54 +00:00
|
|
|
|
2024-05-10 22:58:06 +00:00
|
|
|
Copy the binary to the packaging directory
|
2023-02-20 05:18:54 +00:00
|
|
|
|
2023-10-05 22:33:01 +00:00
|
|
|
````dos
|
2023-10-05 06:34:39 +00:00
|
|
|
cp ..\..\target\release\gossip.exe .
|
|
|
|
````
|
2023-03-12 00:29:20 +00:00
|
|
|
|
|
|
|
Copy the gossip.png here
|
|
|
|
|
2023-10-05 22:33:01 +00:00
|
|
|
````dos
|
2023-10-05 06:38:42 +00:00
|
|
|
cp ..\..\logo\gossip.png .
|
2023-10-05 06:34:39 +00:00
|
|
|
````
|
2023-03-12 00:29:20 +00:00
|
|
|
|
2023-10-05 06:49:14 +00:00
|
|
|
For new versions of gossip, update `gossip.wxs`:
|
|
|
|
|
|
|
|
* UPDATE the Package.Version, SummaryInformation.Description
|
|
|
|
* UPDATE the Package.ProductCode GUID to a new one
|
|
|
|
* KEEP the UpgradeCode GUID (it should never change, it ties different versions together)
|
|
|
|
* Change a component GUID ONLY IF the absolute path changes.
|
2023-02-20 05:18:54 +00:00
|
|
|
|
2023-02-11 22:00:41 +00:00
|
|
|
Packaging:
|
|
|
|
|
2023-10-05 22:33:01 +00:00
|
|
|
````dos
|
2023-10-05 06:34:39 +00:00
|
|
|
wix build gossip.VERSION.wxs
|
|
|
|
````
|
2023-02-20 05:18:54 +00:00
|
|
|
|
|
|
|
Upload to github releases.
|
|
|
|
|
|
|
|
----
|
2023-02-11 22:00:41 +00:00
|
|
|
To install the package, either double-click the MSI, or
|
|
|
|
|
2023-10-05 22:33:01 +00:00
|
|
|
````dos
|
2024-04-14 22:31:01 +00:00
|
|
|
msiexec /i gossip.msi
|
2023-10-05 06:34:39 +00:00
|
|
|
````
|
2023-02-11 22:00:41 +00:00
|
|
|
|
|
|
|
To remove the package from your windows computer:
|
|
|
|
|
2023-10-05 22:33:01 +00:00
|
|
|
````dos
|
2023-10-05 06:34:39 +00:00
|
|
|
msiexec /x gossip.msi
|
|
|
|
````
|