platform-miyoo: change to IPK release output

create `platform/miyoo/pkg.cfg`
This commit is contained in:
Apaczer 2024-07-11 22:49:13 +02:00 committed by kub
parent 29dcbc52b2
commit e3fa3ee270
4 changed files with 53 additions and 5 deletions

View file

@ -196,12 +196,12 @@ jobs:
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=miyoo
make -j$(getconf _NPROCESSORS_ONLN)
mv PicoDrive-miyoo.zip PicoDrive-miyoo-$ver.zip
mv PicoDrive-miyoo.ipk PicoDrive-miyoo-$ver.ipk
- name: artifacts
uses: actions/upload-artifact@v4
with:
name: Miyoo
path: PicoDrive-miyoo*.zip
path: PicoDrive-miyoo*.ipk
build-retrofw:
runs-on: ubuntu-latest

1
.gitignore vendored
View file

@ -30,6 +30,7 @@ PicoDrive
picodrive
picodrive_libretro*
PicoDrive*.opk
PicoDrive*.ipk
PicoDrive*.zip
pico_int_offs.h
amalgamate

View file

@ -141,10 +141,12 @@ all: PicoDrive-dge.zip
CFLAGS += -DSDL_SURFACE_SW # some legacy dinguces had bugs in HWSURFACE
else
ifneq (,$(filter %__MIYOO__, $(CFLAGS)))
PicoDrive-miyoo.zip: .od_data
PicoDrive-miyoo.ipk: .od_data
rm -f .od_data/default.*.desktop .od_data/PicoDrive.dge
cd .od_data && zip -9 -r ../$@ *
all: PicoDrive-miyoo.zip
gm2xpkg -i platform/miyoo/pkg.cfg
mv picodrive.ipk $@
@gm2xpkg -c platform/miyoo/pkg.cfg >/dev/null 2>&1
all: PicoDrive-miyoo.ipk
else
PicoDrive.opk: .od_data
rm -f .od_data/PicoDrive.dge

45
platform/miyoo/pkg.cfg Normal file
View file

@ -0,0 +1,45 @@
# NOTES:
## All variable values should enclosed within double quotes: "<value>"
## CONFIGURATION FILE for `gm2xpkg` script version:
PKGVER="0.4"
# EXEC commands (set to "1" anyone for desired outcome), you can instead use [OPTIONS] of `gm2xpkg`:
PACKAGE=""
ZIP=""
IPK=""
CLEAN=""
# ENV VAR.
## Specific (mandatory to provide!)
TARGET="picodrive" # replace with binary name
VERSION="v2.00" # replace with correct release version if exist
## Generic - common to all apps (better to not modify)
HOMEPATH="/mnt"
RELEASEDIR=""
ASSETSDIR=".od_data"
OPKG_ASSETSDIR=""
LINK="" # full name of gm2x link, modify if exec binary name may be different from target name - place in CWD (warning: it may be removed with CLEAN=1)
ALIASES="" # full name (with ext) of *.txt file with new names for selector e.g. old_title=new_title - place in CWD
MANUAL="" # full name (with ext) of *.man.txt file with usage description of target app - place in CWD
## Link entries (better modify if no <target_name>.lnk file provided)
TITLE="PicoDrive"
DESCRI="MegaDrive/MegaCD/32X emulator"
SELDIR="/mnt/roms/SMD"
DESTDIR="emus" # default=apps
SECTION="emulators" # default=applications
## Custom entries (if needed then modify)
TARGET_DIR="" # the directory /$HOMEPATH/$DESTDIR/TARGET_DIR of executable binary if not provided the TARGET_DIR=$TARGET
DOCS=("COPYING" "AUTHORS") # array of extra text files e.g. =("LICENSE" "CHANGELOG" "CONTRIBUTORS") which will be copied & converted to *.txt files for ease of use by frontend
## IPK control entries (if needed then modify)
PRIORITY=""
MAINTAINER="irixxxx"
CONFFILES=""
ARCH="" # default=arm - do not modify for ARM chips
# CONTROL= # automated output of *.ipk control config file
DEPENDS="" # list of dependency packages e.g. ="sdl, libpng" or ="sdl (>= 2.9.2), sdl_mixer (= ed76d39cda0735d26c14a3e4f4da996e420f6478)" provide only for shared libs build, otherwise ignored
SOURCE="https://github.com/irixxxx/picodrive"
LICENSE="Custom"