-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically release Tauri binaries
This makes it so we automatically release the Tauri binaries when we merge a new change to the master branch.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
set -ex | ||
|
||
main() { | ||
local src=$(pwd) \ | ||
stage= | ||
|
||
if [[ $OS_NAME =~ ^macos\-.*$ ]]; then | ||
stage=$(mktemp -d -t tmp) | ||
else | ||
stage=$(mktemp -d) | ||
fi | ||
|
||
ls -lhA src-tauri/target/release/ | ||
cp "src-tauri/target/release/LiveSplit One.exe" "$stage/LiveSplit One.exe" 2>/dev/null || : | ||
cp "src-tauri/target/release/LiveSplit One" "$stage/LiveSplit One" 2>/dev/null || : | ||
|
||
cd $stage | ||
if [ "$OS_NAME" = "windows-latest" ]; then | ||
7z a $src/LiveSplitOne-$TARGET.zip * | ||
else | ||
tar czf $src/LiveSplitOne-$TARGET.tar.gz * | ||
fi | ||
cd $src | ||
|
||
rm -rf $stage | ||
} | ||
|
||
main |
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