diff options
author | Charadon <dev@iotib.net> | 2022-09-26 12:59:14 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-09-26 12:59:14 -0400 |
commit | a66e905ed221810e37260085f95022cb6597f849 (patch) | |
tree | 41a6204e40c15261622e25a541ffcab05def713b | |
parent | bd29c1d0e6edb1af2f6591b101bd3b60604c352b (diff) | |
download | Pong-C-a66e905ed221810e37260085f95022cb6597f849.tar.gz |
distribute.sh: Added Windows-specific override to use zip instead of tar.
-rwxr-xr-x | distribute.sh | 21 | ||||
-rwxr-xr-x | install.sh | 1 |
2 files changed, 18 insertions, 4 deletions
diff --git a/distribute.sh b/distribute.sh index 71bee81..5cf21e0 100755 --- a/distribute.sh +++ b/distribute.sh @@ -12,11 +12,17 @@ else fi set -u -mkdir -p "$CONFIG_INSTALL_PREFIX/libs" case "$(uname -s)" in - + MINGW*) + for i in $(ldd "$CONFIG_BUILD_DIR"/bin/Pong* | awk '/mingw*/ {print $3}'); + do + cp "$i" "$CONFIG_INSTALL_PREFIX/libs/" + done + WINDOWS="true" + ;; *) + mkdir -p "$CONFIG_INSTALL_PREFIX/libs" # This is a catch all, above are specific loops for specific platforms. for i in $(ldd "$CONFIG_BUILD_DIR"/bin/Pong* | awk '/usr/ {print $3}'); do @@ -24,8 +30,15 @@ case "$(uname -s)" in done ;; esac + cd "$CONFIG_INSTALL_PREFIX" -rm libs/libGL* # Remove OpenGL as it conflicts with graphics drivers. # Tarball the finish result! -bsdtar -caf ../Pong_"$(uname)-$(uname -r)-$(uname -m)".txz -- * +if [ "$WINDOWS" = "true" ]; +then + zip Pong_"$(uname)-$(uname -r)-$(uname -m)".zip -- * + exit 0 +else + rm libs/libGL* # Remove OpenGL as it conflicts with graphics drivers. + bsdtar -caf ../Pong_"$(uname -s)-$(uname -r)-$(uname -m)".txz -- * +fi diff --git a/install.sh b/install.sh index 7aec82e..8aae48b 100755 --- a/install.sh +++ b/install.sh @@ -34,5 +34,6 @@ then install -Dm644 net.iotib.Pong.metainfo.xml /app/share/appdata/net.iotib.Pong.metainfo.xml install -Dm644 resources/icon.svg /app/share/icons/hicolor/scalable/apps/net.iotib.Pong.svg fi + set +x echo "Done Installing." |