From 8085ddf3e47678d9b7fc8fd497b27b9127698cbb Mon Sep 17 00:00:00 2001 From: Spu7Nix Date: Tue, 14 Sep 2021 16:35:25 +0200 Subject: [PATCH] installer changes --- Cargo.toml | 2 - libraries/std/lib.spwn | 1 + {wix => spwn/wix}/commands.sh | 6 +- {wix => spwn/wix}/generate_wix_lib_file.py | 2 +- {wix => spwn/wix}/libraries.wxs | 96 +++++++++++++--------- {wix => spwn/wix}/main.wxs | 10 ++- 6 files changed, 67 insertions(+), 50 deletions(-) rename {wix => spwn/wix}/commands.sh (64%) rename {wix => spwn/wix}/generate_wix_lib_file.py (95%) rename {wix => spwn/wix}/libraries.wxs (67%) rename {wix => spwn/wix}/main.wxs (97%) diff --git a/Cargo.toml b/Cargo.toml index 45373195..a783267a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,5 +11,3 @@ members = [ "docgen", ] -[profile.release] -debug = true diff --git a/libraries/std/lib.spwn b/libraries/std/lib.spwn index beb3d1ed..1d24fce4 100644 --- a/libraries/std/lib.spwn +++ b/libraries/std/lib.spwn @@ -12,6 +12,7 @@ import "obj_set.spwn" import "dictionary.spwn" import "string.spwn" import "counter.spwn" +import "binary_counter.spwn" import "fileio.spwn" import "regex.spwn" import "number.spwn" diff --git a/wix/commands.sh b/spwn/wix/commands.sh similarity index 64% rename from wix/commands.sh rename to spwn/wix/commands.sh index 1edf253f..4cea4c0d 100644 --- a/wix/commands.sh +++ b/spwn/wix/commands.sh @@ -1,12 +1,12 @@ -python wix/generate_wix_lib_file.py +python spwn/wix/generate_wix_lib_file.py rustup override unset rustup default nightly-i686-pc-windows-msvc cargo install cargo-wix -cargo wix +cargo wix spwn/Cargo.toml --nocapture rustup default nightly-x86_64-pc-windows-msvc cargo install cargo-wix -cargo wix +cargo wix spwn/Cargo.toml --nocapture rustup override set nightly-x86_64-pc-windows-msvc diff --git a/wix/generate_wix_lib_file.py b/spwn/wix/generate_wix_lib_file.py similarity index 95% rename from wix/generate_wix_lib_file.py rename to spwn/wix/generate_wix_lib_file.py index 2c6d84c6..f9c3480a 100644 --- a/wix/generate_wix_lib_file.py +++ b/spwn/wix/generate_wix_lib_file.py @@ -45,6 +45,6 @@ """ print(str) -new_file = open("wix/libraries.wxs", mode="w") +new_file = open("spwn/wix/libraries.wxs", mode="w") new_file.write(str) new_file.close() diff --git a/wix/libraries.wxs b/spwn/wix/libraries.wxs similarity index 67% rename from wix/libraries.wxs rename to spwn/wix/libraries.wxs index d267b62b..8cfe168e 100644 --- a/wix/libraries.wxs +++ b/spwn/wix/libraries.wxs @@ -21,88 +21,104 @@ - + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + diff --git a/wix/main.wxs b/spwn/wix/main.wxs similarity index 97% rename from wix/main.wxs rename to spwn/wix/main.wxs index e062d863..19393cd0 100644 --- a/wix/main.wxs +++ b/spwn/wix/main.wxs @@ -23,10 +23,12 @@ - + DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.' + AllowSameVersionUpgrades="yes" + /> + @@ -106,7 +108,7 @@ - +