* turn off sized deallocation on desktop

* add an easy launch script and tar it

to keep the +x bit

* too many spaces

* add os name and fix linux deploy
This commit is contained in:
stonedDiscord 2022-07-19 09:13:48 +02:00 committed by GitHub
parent 881913e78d
commit 3e0e4583cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 2 deletions

View File

@ -184,8 +184,14 @@ jobs:
cp ./bass/libs/armeabi-v7a/libbassopus.so ./android/libs/armeabi-v7a/
- name: qmake
if: matrix.platform != 'android'
run: |
qmake DEFINES+=DISCORD CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} ANDROID_ABIS="armeabi-v7a"
qmake QMAKE_CXXFLAGS+="-fno-sized-deallocation" DEFINES+=DISCORD CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}}
- name: qmake android
if: matrix.platform == 'android'
run: |
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} ANDROID_ABIS="armeabi-v7a"
- name: build
run: |
@ -210,6 +216,19 @@ jobs:
rm -r bearer
rm -r styles
- name: Deploy Linux
if: matrix.platform == 'gcc_64'
working-directory: ${{github.workspace}}/bin/
shell: bash
run: |
cp ../scripts/launch.sh .
chmod +x launch.sh
chmod +x Attorney_Online
tar -cf Attorney_Online.tar ./*
rm *.so
rm *.sh
rm Attorney_Online
- name: Deploy Mac
if: matrix.os == 'macos-latest'
working-directory: ${{github.workspace}}/bin/
@ -240,5 +259,5 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@master
with:
name: Attorney_Online-${{matrix.platform}}
name: Attorney_Online-${{matrix.os}}-${{matrix.platform}}
path: ${{github.workspace}}/bin/

3
scripts/launch.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
chmod +x Attorney_Online
LD_LIBRARY_PATH=. ./Attorney_Online