-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274212 from justanotherariel/master
morgen: 3.0.1 -> 3.1.6
- Loading branch information
Showing
4 changed files
with
40 additions
and
5 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
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,26 @@ | ||
#!/usr/bin/env nix-shell | ||
#!nix-shell -i bash -p curl jq common-updater-scripts | ||
|
||
set -euo pipefail | ||
|
||
# URL to check for the latest version | ||
latestUrl="https://dl.todesktop.com/210203cqcj00tw1/linux/deb/x64" | ||
|
||
# Fetch the latest version information | ||
latestInfo=$(curl -sI -X GET $latestUrl | grep -oP 'morgen-\K\d+(\.\d+)*(?=[^\d])') | ||
|
||
if [[ -z "$latestInfo" ]]; then | ||
echo "Could not find the latest version number." | ||
exit 1 | ||
fi | ||
|
||
# Extract the version number | ||
latestVersion=$(echo "$latestInfo" | head -n 1) | ||
|
||
echo "Latest version of Morgen is $latestVersion" | ||
|
||
# Update the package definition | ||
update-source-version morgen "$latestVersion" | ||
|
||
# Fetch and update the hash | ||
nix-prefetch-url --unpack "https://dl.todesktop.com/210203cqcj00tw1/versions/${latestVersion}/linux/deb" |
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