Skip to content

Commit b41cb3b

Browse files
committed
Port the Switch UI to Wii U and Vita
1 parent 88bd79d commit b41cb3b

31 files changed

+2341
-3212
lines changed

.github/workflows/autobuild.yml

+65-44
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,31 @@ on:
66
- master
77

88
jobs:
9-
build-linux:
10-
runs-on: ubuntu-latest
9+
build-windows:
10+
runs-on: windows-latest
1111

1212
steps:
13-
- name: Install Flatpak and SDK
14-
run: |
15-
sudo apt update
16-
sudo apt install flatpak flatpak-builder -y
17-
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
18-
sudo flatpak install flathub org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08 -y
1913
- name: Checkout
2014
uses: actions/checkout@v1
15+
- name: Install MSYS2
16+
uses: msys2/setup-msys2@v2
17+
with:
18+
msystem: MINGW64
19+
update: true
20+
- name: Install build tools, wxWidgets, and PortAudio
21+
run: pacman -S mingw-w64-x86_64-{gcc,pkg-config,wxWidgets,portaudio,jbigkit} make --noconfirm
22+
shell: msys2 {0}
2123
- name: Compile
2224
run: |
23-
git config --global protocol.file.allow always
24-
make flatpak
25+
make -j$(nproc)
26+
strip noods.exe
27+
shell: msys2 {0}
28+
working-directory: ${{ github.workspace }}
2529
- name: Upload
2630
uses: actions/upload-artifact@v2
2731
with:
28-
name: noods-linux
29-
path: noods.flatpak
32+
name: noods-windows
33+
path: noods.exe
3034

3135
build-mac:
3236
runs-on: macos-latest
@@ -46,31 +50,47 @@ jobs:
4650
name: noods-mac
4751
path: NooDS.dmg
4852

49-
build-windows:
50-
runs-on: windows-latest
53+
build-linux:
54+
runs-on: ubuntu-latest
5155

5256
steps:
57+
- name: Install Flatpak and SDK
58+
run: |
59+
sudo apt update
60+
sudo apt install flatpak flatpak-builder -y
61+
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
62+
sudo flatpak install flathub org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08 -y
5363
- name: Checkout
5464
uses: actions/checkout@v1
55-
- name: Install MSYS2
56-
uses: msys2/setup-msys2@v2
65+
- name: Compile
66+
run: |
67+
git config --global protocol.file.allow always
68+
make flatpak
69+
- name: Upload
70+
uses: actions/upload-artifact@v2
5771
with:
58-
msystem: MINGW64
59-
update: true
60-
- name: Install build tools, wxWidgets, and PortAudio
61-
run: pacman -S mingw-w64-x86_64-{gcc,pkg-config,wxWidgets,portaudio,jbigkit} make --noconfirm
62-
shell: msys2 {0}
72+
name: noods-linux
73+
path: noods.flatpak
74+
75+
build-android:
76+
runs-on: ubuntu-latest
77+
78+
steps:
79+
- name: Checkout
80+
uses: actions/checkout@v1
6381
- name: Compile
6482
run: |
65-
make -j$(nproc)
66-
strip noods.exe
67-
shell: msys2 {0}
68-
working-directory: ${{ github.workspace }}
83+
./gradlew assembleRelease
84+
mv build-android/outputs/apk/release/android-release-unsigned.apk noods.apk
85+
- name: Sign
86+
run: $ANDROID_SDK_ROOT/build-tools/30.0.2/apksigner sign --ks keystore.jks --ks-pass pass:$KEYSTORE_PASS noods.apk
87+
env:
88+
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
6989
- name: Upload
7090
uses: actions/upload-artifact@v2
7191
with:
72-
name: noods-windows
73-
path: noods.exe
92+
name: noods-android
93+
path: noods.apk
7494

7595
build-switch:
7696
runs-on: ubuntu-latest
@@ -80,51 +100,52 @@ jobs:
80100
- name: Checkout
81101
uses: actions/checkout@v1
82102
- name: Compile
83-
run: make -f Makefile.switch -j$(nproc)
103+
run: make switch -j$(nproc)
84104
- name: Upload
85105
uses: actions/upload-artifact@v2
86106
with:
87107
name: noods-switch
88108
path: noods.nro
89109

90-
build-vita:
110+
build-wiiu:
91111
runs-on: ubuntu-latest
92-
container: vitasdk/vitasdk:latest
112+
container: devkitpro/devkitppc:latest
93113

94114
steps:
95115
- name: Checkout
96116
uses: actions/checkout@v1
97117
- name: Compile
98-
run: make -f Makefile.vita -j$(nproc)
118+
run: |
119+
make wiiu -j$(nproc)
120+
mv icon/icon-wiiu.png icon.png
121+
mv icon/meta.xml meta.xml
99122
- name: Upload
100123
uses: actions/upload-artifact@v2
101124
with:
102-
name: noods-vita
103-
path: noods.vpk
125+
name: noods-wiiu
126+
path: |
127+
icon.png
128+
meta.xml
129+
noods.rpx
104130
105-
build-android:
131+
build-vita:
106132
runs-on: ubuntu-latest
133+
container: vitasdk/vitasdk:latest
107134

108135
steps:
109136
- name: Checkout
110137
uses: actions/checkout@v1
111138
- name: Compile
112-
run: |
113-
./gradlew assembleRelease
114-
mv build-android/outputs/apk/release/android-release-unsigned.apk noods.apk
115-
- name: Sign
116-
run: $ANDROID_SDK_ROOT/build-tools/30.0.2/apksigner sign --ks keystore.jks --ks-pass pass:$KEYSTORE_PASS noods.apk
117-
env:
118-
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
139+
run: make vita -j$(nproc)
119140
- name: Upload
120141
uses: actions/upload-artifact@v2
121142
with:
122-
name: noods-android
123-
path: noods.apk
143+
name: noods-vita
144+
path: noods.vpk
124145

125146
update-release:
126147
runs-on: ubuntu-latest
127-
needs: [build-linux, build-mac, build-windows, build-switch, build-vita, build-android]
148+
needs: [build-windows, build-mac, build-linux, build-android, build-switch, build-wiiu, build-vita]
128149

129150
steps:
130151
- name: Delete old release

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,16 @@ android:
9494
switch:
9595
$(MAKE) -f Makefile.switch
9696

97+
wiiu:
98+
$(MAKE) -f Makefile.wiiu
99+
97100
vita:
98101
$(MAKE) -f Makefile.vita
99102

100103
clean:
101104
if [ -d "build-android" ]; then ./gradlew clean; fi
102105
if [ -d "build-switch" ]; then $(MAKE) -f Makefile.switch clean; fi
106+
if [ -d "build-wiiu" ]; then $(MAKE) -f Makefile.wiiu clean; fi
103107
if [ -d "build-vita" ]; then $(MAKE) -f Makefile.vita clean; fi
104108
rm -rf $(BUILD)
105109
rm -f $(NAME)

0 commit comments

Comments
 (0)