...
 
Commits (2)
variables:
PACKAGE_FOLDER: "fmsx"
stages:
- package
package:
stage: package
image: starcarr/libnx:latest
script:
- sh build.sh $PACKAGE_FOLDER master
artifacts:
name: $PACKAGE_FOLDER
paths:
- $PACKAGE_FOLDER
only:
- master
nightly:
stage: package
image: starcarr/libnx:nightly
script:
- sh build.sh $PACKAGE_FOLDER develop
artifacts:
name: $PACKAGE_FOLDER
expire_in: 24 hours
paths:
- $PACKAGE_FOLDER
except:
- master
#!/bin/bash
PACKAGE_FOLDER=$1
BRANCH=$2
LIBRARY_NAME="fmsx_libretro_switch.a"
NRO_NAME="fmsx.nro"
APP_TITLE="fMSX libnx"
mkdir $PACKAGE_FOLDER
make platform=switch -j10 -f Makefile
git clone -b $BRANCH https://git.m4xw.net/Switch/RetroArch/RetroArch.git --depth=1
cp $LIBRARY_NAME RetroArch/libretro_switch.a
cp assets/icon.jpg RetroArch/icon.jpg
cd RetroArch/
mkdir romfs
APP_TITLE="$APP_TITLE" make -f Makefile.switch -j10
cp retroarch_switch.nro ../$PACKAGE_FOLDER/$NRO_NAME