Skip to content

Commit

Permalink
fix Force-mode when only gm2xpkg ver differs.
Browse files Browse the repository at this point in the history
and target binary will EXIST
  • Loading branch information
Apaczer committed Sep 15, 2024
1 parent a696a2a commit cfdfa24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions tools/gm2xpkg.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VER=0.8
VER=0.9
MIYOOCFW_VER=2.0.0
# Help & About info
help_func() {
Expand Down Expand Up @@ -464,15 +464,13 @@ if test $PACKAGE -eq 1 >/dev/null 2>&1 || test $ZIP -eq 1 >/dev/null 2>&1 || tes
mkdir -p $RELEASEDIR
# mkdir -p $ASSETSDIR
mkdir -p $OPKG_ASSETSDIR
mkdir -p $TARGET_INSTALL_DIR
mkdir -p $RELEASEDIR/gmenu2x/sections/$SECTION
if test "x${FORCE}" != "xyes" || test "x${TARGET_EXIST}" == "xyes"; then
cp $TARGET_PATH $RELEASEDIR/
cp $TARGET_PATH $TARGET_INSTALL_DIR/
else
rm $TARGET_PATH
fi
mkdir -p $TARGET_INSTALL_DIR
mkdir -p $RELEASEDIR/gmenu2x/sections/$SECTION
test "x${FORCE}" != "xyes"\
&& mv $RELEASEDIR/$TARGET $TARGET_INSTALL_DIR/
test -d $ASSETSDIR\
&& cp -r $ASSETSDIR/* $TARGET_INSTALL_DIR\
|| echo "WARNING: No assets directory found matching name \"${ASSETSDIR}/\""
Expand Down
2 changes: 1 addition & 1 deletion tools/pkg.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NOTES:
## All variable values should be enclosed within double quotes: "<value>"
## CONFIGURATION FILE for `gm2xpkg` script version:
PKGVER="0.8"
PKGVER="0.9"

# EXEC commands (set to "1" anyone for desired outcome), you can instead use [OPTIONS] of `gm2xpkg`:
PACKAGE=""
Expand Down

0 comments on commit cfdfa24

Please sign in to comment.