-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78b34b4
commit 2f60fe7
Showing
3 changed files
with
26 additions
and
3 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,23 @@ | ||
#!/bin/bash | ||
|
||
##? Version has been bumped, so we should create a build here then update the | ||
##? updates.json file with the tar.gz.sig provided. Have to figure out how to target the previous version number here though | ||
|
||
echo "Building release..." | ||
yarn build:release | ||
|
||
export UPDATE_SIG_FILE="./src-tauri/target/release/bundle/macos/Browsernaut.app.tar.gz.sig" | ||
export UPDATE_SIG=$(cat $UPDATE_SIG_FILE) | ||
|
||
export PUBLISH_DATE=$(date -u -Iseconds | sed s/+00:00/Z/ | sed s/,/./) | ||
|
||
echo "Updating updates file" | ||
|
||
# #? Update the version | ||
sed -i "" "s/$LATEST_VERSION/$VERSION/g" "./updates.json" | ||
# #? Update the signature | ||
sed -i "" "s/\"signature\":.*/\"signature\": \"$UPDATE_SIG\",/" "./updates.json" | ||
#? Update the pubplish date | ||
sed -i "" "s/\"pub_date\":.*/\"pub_date\": \"$PUBLISH_DATE\",/" "./updates.json" | ||
|
||
echo "Complete!" |
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