File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,22 @@ jobs:
3333 cd build
3434 make VERBOSE=1 || (cat Makefile && exit 1)
3535
36- - name : Collect Qt Libraries
36+ - name : Prepare for Packaging
3737 run : |
3838 cd build
39- ldd SerialPortDebugger > /tmp/ldd-output.txt
40- cd /tmp
41- tar -czvf QtLibraries.tar.gz ldd-output.txt
39+ mkdir -p appbundle
40+ cp SerialPortDebugger appbundle/
41+
42+ - name : Collect Qt Libraries
43+ run : |
44+ cd build/appbundle
45+ ldd SerialPortDebugger | grep "=> /" | awk '{print $3}' | xargs -I{} cp --parents {} ./
46+ tar -czvf ../QtLibraries.tar.gz .
4247
4348 - name : Package Application and Libraries
4449 run : |
4550 cd build
46- tar -czvf Application_and_Libraries.tar.gz SerialPortDebugger /tmp/QtLibraries.tar.gz
51+ tar -czvf Application_and_Libraries.tar.gz SerialPortDebugger ./appbundle/lib/*
4752
4853 - name : Archive Artifacts
4954 uses : actions/upload-artifact@v4
5358
5459 - name : Clean up
5560 run : |
56- rm -rf /tmp/ldd-output.txt /tmp /QtLibraries.tar.gz
61+ rm -rf build/appbundle build /QtLibraries.tar.gz
You can’t perform that action at this time.
0 commit comments