From 3e5b74184c002fe21cdf0f2d762af03542d13aa9 Mon Sep 17 00:00:00 2001 From: Edoardo Lolletti Date: Wed, 17 Jul 2024 18:52:13 +0200 Subject: [PATCH] Strip mingw binaries --- .github/workflows/ygopro-core.yml | 2 ++ scripts/predeploy.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ygopro-core.yml b/.github/workflows/ygopro-core.yml index 23b4a94a..635a1db9 100644 --- a/.github/workflows/ygopro-core.yml +++ b/.github/workflows/ygopro-core.yml @@ -101,6 +101,8 @@ jobs: run: ./scripts/build-premake5.sh - name: Predeploy shell: bash + env: + STRIP: 1 run: ./scripts/predeploy.sh - name: Deploy if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} diff --git a/scripts/predeploy.sh b/scripts/predeploy.sh index 1526596f..925c0293 100755 --- a/scripts/predeploy.sh +++ b/scripts/predeploy.sh @@ -7,6 +7,9 @@ mkdir -p $DEPLOY_DIR if [[ "$TARGET_OS" == "windows" ]]; then shopt -s globstar mv bin/**/ocgcore.dll $DEPLOY_DIR + if [[ "${STRIP:-0}" == "1" ]]; then + strip $DEPLOY_DIR/ocgcore.dll + fi elif [[ "$TARGET_OS" == "android" ]]; then ARCH=("armeabi-v7a" "arm64-v8a" "x86" "x86_64" ) OUTPUT=("libocgcorev7.so" "libocgcorev8.so" "libocgcorex86.so" "libocgcorex64.so")