From 83d44570c1c4b4a12e18014f2f4c824c3c8915e9 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 21 Apr 2021 17:43:47 +1000 Subject: [PATCH] ci: update for new structure --- .github/workflows/ci.yml | 24 +++++++++++++----------- app/CMakeLists.txt | 6 +++--- app/crashhandler/CMakeLists.txt | 1 - 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d16cedee..33d31a454 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,17 +91,18 @@ jobs: appdir/usr/share/applications/org.olivevideoeditor.Olive.desktop \ -exclude-libs=libQt5Pdf.so,libQt5Qml.so,libQt5QmlModels.so,libQt5Quick.so,libQt5VirtualKeyboard.so \ -bundle-non-qt-libs \ + -executable=appdir/usr/lib/libolive-editor \ -executable=appdir/usr/bin/crashpad_handler \ -executable=appdir/usr/bin/minidump_stackwalk \ -executable=appdir/usr/bin/olive-crashhandler \ --appimage-extract-and-run # Dump Crashpad symbols - dump_syms appdir/usr/bin/olive-editor > olive-editor.sym + dump_syms appdir/usr/lib/libolive-editor.so > libolive-editor.sym # HACK: For some reason, minidump_stackwalk reads identifier as all 0s - SYM_DIR=appdir/usr/share/olive-editor/symbols/olive-editor/000000000000000000000000000000000 + SYM_DIR=appdir/usr/share/olive-editor/symbols/libolive-editor.so/000000000000000000000000000000000 mkdir -p "$SYM_DIR" - mv olive-editor.sym "$SYM_DIR" + mv libolive-editor.sym "$SYM_DIR" # Package AppImage $DOWNLOAD_TOOL https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage @@ -208,8 +209,9 @@ jobs: run: | mkdir olive-editor cp app/olive-editor.exe olive-editor - cp app/olive-crashhandler.exe olive-editor + cp app/crashhandler/olive-crashhandler.exe olive-editor cp app/olive-editor.pdb olive-editor + cp app/libolive-editor.pdb olive-editor $DEP_LOCATION/bin/windeployqt olive-editor/olive-crashhandler.exe $DEP_LOCATION/bin/windeployqt olive-editor/olive-editor.exe cp $(cygpath $DEP_LOCATION)/bin/*.dll olive-editor @@ -221,11 +223,11 @@ jobs: shell: bash run: | curl -fLSs https://github.com/google/breakpad/blob/master/src/tools/windows/binaries/dump_syms.exe?raw=true > dump_syms.exe - ./dump_syms app/olive-editor.pdb > olive-editor.sym - SYM_HEADER=($(head -n 1 olive-editor.sym)) # Read first line of symbol file - SYM_DIR=olive-editor/symbols/olive-editor.pdb/${SYM_HEADER[3]} + ./dump_syms app/libolive-editor.pdb > libolive-editor.sym + SYM_HEADER=($(head -n 1 libolive-editor.sym)) # Read first line of symbol file + SYM_DIR=olive-editor/symbols/libolive-editor.pdb/${SYM_HEADER[3]} mkdir -p "$SYM_DIR" - mv olive-editor.sym "$SYM_DIR" + mv libolive-editor.sym "$SYM_DIR" - name: Deploy Packages working-directory: ${{ runner.workspace }}/build @@ -361,9 +363,9 @@ jobs: install_name_tool -change libmodplug.dylib @rpath/libmodplug.dylib $BUNDLE_NAME/Contents/Frameworks/libavfilter.* # Crashpad symbols - $DEP_LOCATION/bin/dump_syms $BUNDLE_NAME/Contents/MacOS/Olive > Olive.sym - SYM_HEADER=($(head -n 1 Olive.sym)) # Read first line of symbol file - SYM_DIR=$BUNDLE_NAME/Contents/Resources/symbols/Olive/${SYM_HEADER[3]} + $DEP_LOCATION/bin/dump_syms $BUNDLE_NAME/Contents/Resources/libolive-editor.dylib > libolive-editor.sym + SYM_HEADER=($(head -n 1 libolive-editor.sym)) # Read first line of symbol file + SYM_DIR=$BUNDLE_NAME/Contents/Resources/symbols/libolive-editor.dylib/${SYM_HEADER[3]} mkdir -p "$SYM_DIR" mv Olive.sym "$SYM_DIR" diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 1f0b02aa0..0c56fd218 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -83,13 +83,13 @@ elseif(APPLE) MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/packaging/macos/MacOSXBundleInfo.plist.in MACOSX_BUNDLE_GUI_IDENTIFIER org.olivevideoeditor.Olive MACOSX_BUNDLE_ICON_FILE olive.icns - RESOURCE "${OLIVE_ICON}" + RESOURCE "${OLIVE_ICON}" libolive-editor OUTPUT_NAME "Olive" ) elseif(UNIX) # Set Linux-specific properties for application - #install(TARGETS olive-editor RUNTIME DESTINATION bin) - #install(TARGETS libolive-editor RUNTIME DESTINATION lib) + install(TARGETS olive-editor RUNTIME DESTINATION bin) + install(TARGETS libolive-editor RUNTIME DESTINATION lib) endif() # Set link libraries diff --git a/app/crashhandler/CMakeLists.txt b/app/crashhandler/CMakeLists.txt index 0c6682814..af10719da 100644 --- a/app/crashhandler/CMakeLists.txt +++ b/app/crashhandler/CMakeLists.txt @@ -52,7 +52,6 @@ if(APPLE) # Move crash handler executables inside Mac app bundle add_custom_command(TARGET olive-crashhandler POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different olive-crashhandler $ - COMMAND ${CMAKE_COMMAND} -E copy_if_different libolive-editor $ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CRASHPAD_LIBRARY_DIRS}/${CRASHPAD_HANDLER} $ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${BREAKPAD_BIN_DIR}/${MINIDUMP_STACKWALK} $ )