-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathmsys-init.sh
40 lines (32 loc) · 862 Bytes
/
msys-init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
REPO=${REPO:-https://github.com/tomm/fab-agon-emulator.git}
set -euo pipefail # bash strict mode: https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425
echo "
⚠️ MSYS2 may ask to restart after this update. If so, rerun this script afterwards.
"
pacman --noconfirm -Syu
echo "
⚙️ Installing build dependencies for fab-agon-emulator...
"
pacman --noconfirm -S \
vim \
git \
make \
ucrt64/mingw-w64-ucrt-x86_64-SDL2 \
ucrt64/mingw-w64-ucrt-x86_64-gcc \
ucrt64/mingw-w64-ucrt-x86_64-rust
echo "
⭐ MSYS2 initialization complete
⭐ Build dependencies for fab-egon-emulator installed
👋 Cloning ${REPO}...
"
git clone "${REPO}"
echo "
⭐ github repo ${REPO} cloned
🤝 Please run the following commands:
cd fab-agon-emulator
git submodule update --init
make
./fab-agon-emulator.exe
🎉 Enjoy!
"