renpy: automatically update version codename
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
libGLU,
|
||||
libpng,
|
||||
makeWrapper,
|
||||
nix-update-script,
|
||||
pkg-config,
|
||||
python3,
|
||||
SDL2,
|
||||
@@ -99,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
official = False
|
||||
nightly = False
|
||||
# Look at https://renpy.org/latest.html for what to put.
|
||||
version_name = 'Tomorrowland'
|
||||
version_name = "Tomorrowland"
|
||||
EOF
|
||||
'';
|
||||
|
||||
@@ -131,7 +130,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
doInstallCheck = true;
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = {
|
||||
description = "Visual Novel Engine";
|
||||
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p bash nix-update html-xml-utils
|
||||
|
||||
set -ex
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
|
||||
|
||||
codename=`curl -L https://renpy.org/latest.html | hxclean | hxselect -c h1 small`
|
||||
sed -E -i "s/(version_name = ).*/\1$codename/" $SCRIPT_DIR/package.nix
|
||||
|
||||
nix-update renpy
|
||||
Reference in New Issue
Block a user