Skip to content

Commit

Permalink
Port the Switch UI to Wii U and Vita
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydr8gon committed Feb 28, 2024
1 parent 88bd79d commit b41cb3b
Show file tree
Hide file tree
Showing 31 changed files with 2,341 additions and 3,212 deletions.
109 changes: 65 additions & 44 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,31 @@ on:
- master

jobs:
build-linux:
runs-on: ubuntu-latest
build-windows:
runs-on: windows-latest

steps:
- name: Install Flatpak and SDK
run: |
sudo apt update
sudo apt install flatpak flatpak-builder -y
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08 -y
- name: Checkout
uses: actions/checkout@v1
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
- name: Install build tools, wxWidgets, and PortAudio
run: pacman -S mingw-w64-x86_64-{gcc,pkg-config,wxWidgets,portaudio,jbigkit} make --noconfirm
shell: msys2 {0}
- name: Compile
run: |
git config --global protocol.file.allow always
make flatpak
make -j$(nproc)
strip noods.exe
shell: msys2 {0}
working-directory: ${{ github.workspace }}
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-linux
path: noods.flatpak
name: noods-windows
path: noods.exe

build-mac:
runs-on: macos-latest
Expand All @@ -46,31 +50,47 @@ jobs:
name: noods-mac
path: NooDS.dmg

build-windows:
runs-on: windows-latest
build-linux:
runs-on: ubuntu-latest

steps:
- name: Install Flatpak and SDK
run: |
sudo apt update
sudo apt install flatpak flatpak-builder -y
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08 -y
- name: Checkout
uses: actions/checkout@v1
- name: Install MSYS2
uses: msys2/setup-msys2@v2
- name: Compile
run: |
git config --global protocol.file.allow always
make flatpak
- name: Upload
uses: actions/upload-artifact@v2
with:
msystem: MINGW64
update: true
- name: Install build tools, wxWidgets, and PortAudio
run: pacman -S mingw-w64-x86_64-{gcc,pkg-config,wxWidgets,portaudio,jbigkit} make --noconfirm
shell: msys2 {0}
name: noods-linux
path: noods.flatpak

build-android:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Compile
run: |
make -j$(nproc)
strip noods.exe
shell: msys2 {0}
working-directory: ${{ github.workspace }}
./gradlew assembleRelease
mv build-android/outputs/apk/release/android-release-unsigned.apk noods.apk
- name: Sign
run: $ANDROID_SDK_ROOT/build-tools/30.0.2/apksigner sign --ks keystore.jks --ks-pass pass:$KEYSTORE_PASS noods.apk
env:
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-windows
path: noods.exe
name: noods-android
path: noods.apk

build-switch:
runs-on: ubuntu-latest
Expand All @@ -80,51 +100,52 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Compile
run: make -f Makefile.switch -j$(nproc)
run: make switch -j$(nproc)
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-switch
path: noods.nro

build-vita:
build-wiiu:
runs-on: ubuntu-latest
container: vitasdk/vitasdk:latest
container: devkitpro/devkitppc:latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Compile
run: make -f Makefile.vita -j$(nproc)
run: |
make wiiu -j$(nproc)
mv icon/icon-wiiu.png icon.png
mv icon/meta.xml meta.xml
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-vita
path: noods.vpk
name: noods-wiiu
path: |
icon.png
meta.xml
noods.rpx
build-android:
build-vita:
runs-on: ubuntu-latest
container: vitasdk/vitasdk:latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Compile
run: |
./gradlew assembleRelease
mv build-android/outputs/apk/release/android-release-unsigned.apk noods.apk
- name: Sign
run: $ANDROID_SDK_ROOT/build-tools/30.0.2/apksigner sign --ks keystore.jks --ks-pass pass:$KEYSTORE_PASS noods.apk
env:
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
run: make vita -j$(nproc)
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-android
path: noods.apk
name: noods-vita
path: noods.vpk

update-release:
runs-on: ubuntu-latest
needs: [build-linux, build-mac, build-windows, build-switch, build-vita, build-android]
needs: [build-windows, build-mac, build-linux, build-android, build-switch, build-wiiu, build-vita]

steps:
- name: Delete old release
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,16 @@ android:
switch:
$(MAKE) -f Makefile.switch

wiiu:
$(MAKE) -f Makefile.wiiu

vita:
$(MAKE) -f Makefile.vita

clean:
if [ -d "build-android" ]; then ./gradlew clean; fi
if [ -d "build-switch" ]; then $(MAKE) -f Makefile.switch clean; fi
if [ -d "build-wiiu" ]; then $(MAKE) -f Makefile.wiiu clean; fi
if [ -d "build-vita" ]; then $(MAKE) -f Makefile.vita clean; fi
rm -rf $(BUILD)
rm -f $(NAME)
Loading

0 comments on commit b41cb3b

Please sign in to comment.