From e784de310afb78bc17c4e609ea57ab6cabb2ed9b Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 6 Apr 2025 01:25:35 +0200 Subject: [PATCH 1/6] =?UTF-8?q?=E2=9C=A8=20wine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PKGBUILD | 13 +++++++++++++ root/usr/share/applications/Game Title.desktop | 9 +++++++++ setup.sh | 7 +++++++ 3 files changed, 29 insertions(+) create mode 100644 PKGBUILD create mode 100644 root/usr/share/applications/Game Title.desktop create mode 100644 setup.sh diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..5a25ab4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,13 @@ +pkgname=game.title +pkgver=1.0 +pkgrel=1 +pkgdesc="" +arch=('x86_64') +depends=('wine' 'umu-launcher') +makedepends=('rsync') +source=() +sha256sums=() + +package() { + rsync -vzrp ../root/ "$pkgdir/" +} diff --git a/root/usr/share/applications/Game Title.desktop b/root/usr/share/applications/Game Title.desktop new file mode 100644 index 0000000..bf16d5e --- /dev/null +++ b/root/usr/share/applications/Game Title.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name= +Comment= +Exec=env WINEPREFIX="$HOME/Games/umu/game.title" STEAM_COMPAT_LIBRARY_PATHS="/games" bash -c "cd /games/game.title && umu-run /games/game.title/_Redist/vc_redist.x64.exe /Install /Quiet && umu-run /games/game.title/_Redist/vc_redist.x86.exe /Install /Quiet && umu-run /games/game.title/game.exe" +Icon=/usr/share/icons/game.title/icon1.ico +StartupNotify=true +Terminal=false +Type=Application +Categories=Game; diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..c7a665c --- /dev/null +++ b/setup.sh @@ -0,0 +1,7 @@ +safe_title=$(python3 -c 'print("$name".replace(" ", ".").lower())') +mv -v "root/usr/share/applications/Game Title.desktop" "root/usr/share/applications/$name.desktop" +mkdir -p root/games/$safe_title +mkdir -p root/usr/share/icons/$safe_title +sd "game.title" "$safe_title" "root/usr/share/applications/$name.desktop" +sd "game.title" "$safe_title" PKGBUILD +rm setup.sh \ No newline at end of file From 2847e085cc6c117c117bb3dc264115696ae976e8 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 6 Apr 2025 01:58:48 +0200 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index c7a665c..f964b2f 100644 --- a/setup.sh +++ b/setup.sh @@ -1,4 +1,4 @@ -safe_title=$(python3 -c 'print("$name".replace(" ", ".").lower())') +safe_title=$(python3 -c "print(\"$name\".replace(\" \", \".\").lower())") mv -v "root/usr/share/applications/Game Title.desktop" "root/usr/share/applications/$name.desktop" mkdir -p root/games/$safe_title mkdir -p root/usr/share/icons/$safe_title From e00cf90def33d1e930e91aa5d74837bf6826376b Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 6 Apr 2025 02:02:06 +0200 Subject: [PATCH 3/6] =?UTF-8?q?=E2=9C=A8=20wiiu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap.toml b/bootstrap.toml index 796db0d..616df95 100644 --- a/bootstrap.toml +++ b/bootstrap.toml @@ -1,5 +1,5 @@ [ask] -platform = { kind = "selection", prompt = "Game Platform", options = ["wine"] } +platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu"] } name = { kind = "text", prompt = "Game Name?" } desc = { kind = "text", prompt = "Game Description?" } @@ -15,6 +15,10 @@ to_var = "desc" when = { var = "platform", eq = "wine"} branch = "wine" +[[actions.branch]] +when = { var = "platform", eq = "wiiu"} +branch = "wiiu" + [[actions.script]] script = "setup.sh" expose = ["name", "desc"] From 5f80622d6b1ab0ac1347236c12539fdcb1b9caad Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 6 Apr 2025 02:04:13 +0200 Subject: [PATCH 4/6] =?UTF-8?q?=E2=9C=A8=20more=20platforms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap.toml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/bootstrap.toml b/bootstrap.toml index 616df95..7b04bbc 100644 --- a/bootstrap.toml +++ b/bootstrap.toml @@ -1,5 +1,5 @@ [ask] -platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu"] } +platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch"] } name = { kind = "text", prompt = "Game Name?" } desc = { kind = "text", prompt = "Game Description?" } @@ -19,6 +19,31 @@ branch = "wine" when = { var = "platform", eq = "wiiu"} branch = "wiiu" + +[[actions.branch]] +when = { var = "platform", eq = "3ds"} +branch = "3ds" + +[[actions.branch]] +when = { var = "platform", eq = "gamecube"} +branch = "gamecube" + +[[actions.branch]] +when = { var = "platform", eq = "gba"} +branch = "gba" + +[[actions.branch]] +when = { var = "platform", eq = "ps2"} +branch = "ps2" + +[[actions.branch]] +when = { var = "platform", eq = "ps3"} +branch = "ps3" + +[[actions.branch]] +when = { var = "platform", eq = "switch"} +branch = "switch" + [[actions.script]] script = "setup.sh" expose = ["name", "desc"] From ca0f42c326d13ee644ab03a3eec3b6ee4fab3253 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 12 Apr 2025 15:25:33 +0200 Subject: [PATCH 5/6] add order --- bootstrap.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap.toml b/bootstrap.toml index 7b04bbc..9412618 100644 --- a/bootstrap.toml +++ b/bootstrap.toml @@ -1,7 +1,7 @@ [ask] -platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch"] } -name = { kind = "text", prompt = "Game Name?" } -desc = { kind = "text", prompt = "Game Description?" } +platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch"], order = 1 } +name = { kind = "text", prompt = "Game Name?", order = 2 } +desc = { kind = "text", prompt = "Game Description?", order = 3 } [[actions.replace]] from = "" From 76bf17e1abb0b2ea1972a5989b43005797811a64 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Tue, 15 Apr 2025 19:40:36 +0200 Subject: [PATCH 6/6] =?UTF-8?q?=E2=9C=A8=20n64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap.toml b/bootstrap.toml index 9412618..2a171c1 100644 --- a/bootstrap.toml +++ b/bootstrap.toml @@ -1,5 +1,5 @@ [ask] -platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch"], order = 1 } +platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch", "n64"], order = 1 } name = { kind = "text", prompt = "Game Name?", order = 2 } desc = { kind = "text", prompt = "Game Description?", order = 3 } @@ -19,6 +19,9 @@ branch = "wine" when = { var = "platform", eq = "wiiu"} branch = "wiiu" +[[actions.branch]] +when = { var = "platform", eq = "n64"} +branch = "n64" [[actions.branch]] when = { var = "platform", eq = "3ds"}