Use unzipfx approach for Windows zip executables
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
0c00446480
commit
ebb4091a60
4 changed files with 17 additions and 22 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -929,12 +929,9 @@ jobs:
|
|||
- name: Pack binaries
|
||||
run: |
|
||||
pushd bin
|
||||
mkdir CardinalPortable
|
||||
mv CardinalNative.exe CardinalPortable/
|
||||
ln -s ../Cardinal.clap/resources CardinalPortable/
|
||||
zip -r -9 ../${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || env.SHA8 }}.zip $(ls | grep -e lv2 -e vst -e clap -e CardinalPortable)
|
||||
zip -r -9 ../${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || env.SHA8 }}.zip $(ls | grep -e lv2 -e vst -e clap)
|
||||
popd
|
||||
zip -u -9 ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || env.SHA8 }}.zip LICENSE README.md docs/*.*
|
||||
zip -u -9 ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || env.SHA8 }}.zip LICENSE README.md docs/*.* CardinalJACK.exe CardinalNative.exe
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || env.SHA8 }}
|
||||
|
@ -1021,12 +1018,9 @@ jobs:
|
|||
- name: Pack binaries
|
||||
run: |
|
||||
pushd bin
|
||||
mkdir CardinalPortable
|
||||
mv CardinalNative.exe CardinalPortable/
|
||||
ln -s ../Cardinal.clap/resources CardinalPortable/
|
||||
zip -r -9 ../${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.SHA8 }}.zip $(ls | grep -e lv2 -e vst -e clap -e CardinalPortable)
|
||||
zip -r -9 ../${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.SHA8 }}.zip $(ls | grep -e lv2 -e vst -e clap)
|
||||
popd
|
||||
zip -u -9 ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.SHA8 }}.zip LICENSE README.md docs/*.*
|
||||
zip -u -9 ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.SHA8 }}.zip LICENSE README.md docs/*.* CardinalJACK.exe CardinalNative.exe
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || env.SHA8 }}
|
||||
|
|
22
Makefile
22
Makefile
|
@ -226,23 +226,23 @@ endif
|
|||
# Packaging standalone for CI
|
||||
|
||||
unzipfx: deps/unzipfx/unzipfx2cat$(APP_EXT) CardinalJACK.zip CardinalNative.zip
|
||||
cat deps/unzipfx/unzipfx2cat$(APP_EXT) CardinalJACK.zip > CardinalJACK
|
||||
cat deps/unzipfx/unzipfx2cat$(APP_EXT) CardinalNative.zip > CardinalNative
|
||||
chmod +x CardinalJACK CardinalNative
|
||||
cat deps/unzipfx/unzipfx2cat$(APP_EXT) CardinalJACK.zip > CardinalJACK$(APP_EXT)
|
||||
cat deps/unzipfx/unzipfx2cat$(APP_EXT) CardinalNative.zip > CardinalNative$(APP_EXT)
|
||||
chmod +x CardinalJACK$(APP_EXT) CardinalNative$(APP_EXT)
|
||||
|
||||
CardinalJACK.zip: bin/Cardinal bin/CardinalFX.lv2/resources
|
||||
CardinalJACK.zip: bin/Cardinal$(APP_EXT) bin/CardinalFX.lv2/resources
|
||||
mkdir -p build/unzipfx-jack
|
||||
ln -sf ../../bin/Cardinal build/unzipfx-jack/Cardinal
|
||||
ln -s ../../bin/CardinalFX.lv2/resources build/unzipfx-jack/resources
|
||||
ln -sf ../../bin/Cardinal$(APP_EXT) build/unzipfx-jack/Cardinal$(APP_EXT)
|
||||
ln -sf ../../bin/CardinalFX.lv2/resources build/unzipfx-jack/resources
|
||||
cd build/unzipfx-jack && \
|
||||
zip -r -9 ../../$@ Cardinal resources
|
||||
zip -r -9 ../../$@ Cardinal$(APP_EXT) resources
|
||||
|
||||
CardinalNative.zip: bin/CardinalNative bin/CardinalFX.lv2/resources
|
||||
CardinalNative.zip: bin/CardinalNative$(APP_EXT) bin/CardinalFX.lv2/resources
|
||||
mkdir -p build/unzipfx-native
|
||||
ln -sf ../../bin/CardinalNative build/unzipfx-native/Cardinal
|
||||
ln -s ../../bin/CardinalFX.lv2/resources build/unzipfx-native/resources
|
||||
ln -sf ../../bin/CardinalNative$(APP_EXT) build/unzipfx-native/Cardinal$(APP_EXT)
|
||||
ln -sf ../../bin/CardinalFX.lv2/resources build/unzipfx-native/resources
|
||||
cd build/unzipfx-native && \
|
||||
zip -r -9 ../../$@ Cardinal resources
|
||||
zip -r -9 ../../$@ Cardinal$(APP_EXT) resources
|
||||
|
||||
deps/unzipfx/unzipfx2cat:
|
||||
make -C deps/unzipfx -f Makefile.linux
|
||||
|
|
2
deps/unzipfx/Makefile.win32
vendored
2
deps/unzipfx/Makefile.win32
vendored
|
@ -21,7 +21,7 @@ all: unzipfx2cat.exe
|
|||
unzipfx2cat.exe: $(OBJ)
|
||||
$(CC) $^ $(LINK_FLAGS) -o $@
|
||||
|
||||
icon.o: ../../../resources/ico/carla.rc
|
||||
icon.o: ../../utils/distrho.rc
|
||||
$(WINDRES) -i $< -o $@ -O coff
|
||||
|
||||
clean:
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
id ICON "distrho.ico"
|
||||
401 ICON "distrho.ico"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue