diff --git a/PKGBUILD b/PKGBUILD deleted file mode 100644 index 74caa65..0000000 --- a/PKGBUILD +++ /dev/null @@ -1,12 +0,0 @@ -pkgname=game.title -pkgver=1.0 -pkgrel=1 -pkgdesc="" -arch=('x86_64') -depends=('cemu') -source=() -sha256sums=() - -package() { - rsync -vzrp ../root/ "$pkgdir/" -} diff --git a/bootstrap.toml b/bootstrap.toml index 796db0d..2a171c1 100644 --- a/bootstrap.toml +++ b/bootstrap.toml @@ -1,7 +1,7 @@ [ask] -platform = { kind = "selection", prompt = "Game Platform", options = ["wine"] } -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", "n64"], order = 1 } +name = { kind = "text", prompt = "Game Name?", order = 2 } +desc = { kind = "text", prompt = "Game Description?", order = 3 } [[actions.replace]] from = "" @@ -15,6 +15,38 @@ to_var = "desc" when = { var = "platform", eq = "wine"} branch = "wine" +[[actions.branch]] +when = { var = "platform", eq = "wiiu"} +branch = "wiiu" + +[[actions.branch]] +when = { var = "platform", eq = "n64"} +branch = "n64" + +[[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"] diff --git a/root/usr/share/applications/Game Title.desktop b/root/usr/share/applications/Game Title.desktop deleted file mode 100644 index d8e63f6..0000000 --- a/root/usr/share/applications/Game Title.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Name= -Comment= -Exec=cemu -f -g "/games/rom/wiiu/game.title.wua" -Icon=/usr/share/icons/game.title/icon1.ico -StartupNotify=true -Terminal=false -Type=Application -Categories=Game; diff --git a/setup.sh b/setup.sh deleted file mode 100644 index 02638c1..0000000 --- a/setup.sh +++ /dev/null @@ -1,7 +0,0 @@ -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/rom/wiiu -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