-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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 #281851 from adamcstephens/abs/2.7.2
audiobookshelf: 2.7.1 -> 2.7.2, add updatescript, move to by-name
- Loading branch information
Showing
5 changed files
with
51 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"owner": "advplyr", | ||
"repo": "audiobookshelf", | ||
"rev": "90f4833c9e0957f08799af15966d1909516b335e", | ||
"hash": "sha256-m+CwUV3Bu9sHvRKCA1vFXYYRx48bxZ8N3BornO1tLQ0=", | ||
"version": "2.7.2", | ||
"depsHash": "sha256-1623oXtkOp43xQvHI3GbJpEQLvgr5WD5FpfNO+d0RR8=", | ||
"clientDepsHash": "sha256-ugf9C/L5aBTO7gCy561kV06Ihb/mg/ZW916NKngIYXI=" | ||
} |
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,30 @@ | ||
#!/usr/bin/env nix-shell | ||
#!nix-shell -i nu -p nushell common-updater-scripts prefetch-npm-deps | ||
|
||
def main [] { | ||
let sourceFile = $"(pwd)/pkgs/by-name/au/audiobookshelf/source.json" | ||
let tags = list-git-tags --url=https://github.com/advplyr/audiobookshelf | lines | sort --natural | str replace v '' | ||
|
||
let latest_tag = $tags | last | ||
let current_version = open $sourceFile | get version | ||
|
||
if $latest_tag != $current_version { | ||
let source = nix-prefetch-github advplyr audiobookshelf --rev $"v($latest_tag)" | from json | merge { version: $latest_tag, depsHash: "", clientDepsHash: ""} | ||
$source | save --force $sourceFile | ||
|
||
let srcPath = nix-build $env.PWD -A audiobookshelf.src | complete | get stdout | lines | first | ||
|
||
print $srcPath | ||
ls $srcPath | ||
|
||
$source | merge { | ||
depsHash: (prefetch-npm-deps $"($srcPath)/package-lock.json"), | ||
clientDepsHash: (prefetch-npm-deps $"($srcPath)/client/package-lock.json") | ||
} | save --force $sourceFile | ||
|
||
# appease the editorconfig CI check | ||
echo "\n" | save --append $sourceFile | ||
} | ||
|
||
{before: $current_version, after: $latest_tag} | ||
} |
File renamed without changes.
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