bootstrap.py: add Manjaro/Arch Linux setup

This commit is contained in:
Noah 2021-06-02 19:18:52 -07:00
parent 9b80d38c3e
commit fcb5d27290
2 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,7 @@ repos_github = {
dep_fedora = ["make", "golang", "SDL2-devel", "SDL2_ttf-devel", "SDL2_mixer-devel"]
dep_debian = ["make", "golang", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-mixer-dev"]
dep_macos = ["golang", "sdl2", "sdl2_ttf", "sdl2_mixer", "pkg-config"]
dep_arch = ["go", "sdl2", "sdl2_ttf", "sdl2_mixer"]
# Absolute path to current working directory.
@ -79,6 +80,9 @@ def install_deps():
# Debian-like.
if shell("dpkg-query -l {}".format(' '.join(dep_debian))) != 0:
must_shell("sudo apt update && sudo apt install {}".format(' '.join(dep_debian)))
elif shell("which pacman") == 0:
# Arch-like.
must_shell("sudo pacman -S {}".format(' '.join(dep_arch)))
else:
print("Warning: didn't detect your package manager to install SDL2 and other dependencies")

5
go.mod
View File

@ -41,3 +41,8 @@ require (
mvdan.cc/unparam v0.0.0-20200501210554-b37ab49443f7 // indirect
)
replace git.kirsle.net/go/render => /home/kirsle/SketchyMaze/deps/render
replace git.kirsle.net/go/ui => /home/kirsle/SketchyMaze/deps/ui
replace git.kirsle.net/go/audio => /home/kirsle/SketchyMaze/deps/audio