forked from kaspanet/rusty-kaspa
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts for redistributable packages
- Loading branch information
Showing
5 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
$INSTALLER = "snap" | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
$INSTALLER = "dmg" | ||
elif [[ "$OSTYPE" == "cygwin" ]]; then | ||
$INSTALLER = "innosetup" | ||
elif [[ "$OSTYPE" == "msys" ]]; then | ||
$INSTALLER = "innosetup" | ||
elif [[ "$OSTYPE" == "win32" ]]; then | ||
$INSTALLER = "innosetup" | ||
elif [[ "$OS" == "Windows"* ]]; then | ||
$INSTALLER = "innosetup" | ||
elif [[ "$OSTYPE" == "freebsd"* ]]; then | ||
echo "FreeBSD is not supported" | ||
else | ||
echo "Unknown operating system" | ||
fi | ||
|
||
if [ "$1" = "--dev" ]; then | ||
cargo nw build --sdk $INSTALLER | ||
else | ||
cargo nw build $INSTALLER | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
if ($args.Contains("--dev")) { | ||
& "cargo nw build --sdk innosetup" | ||
} else { | ||
& "cargo nw build innosetup" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
if [ "$1" = "--dev" ]; then | ||
cargo nw run --sdk | ||
else | ||
cargo nw run | ||
fi |