Skip to content

Commit 78706cf

Browse files
committed
fix: no GUI
1 parent 905542d commit 78706cf

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
if: runner.os == 'Windows'
5555
shell: cmd
5656
run: |
57-
mkdir release\windows
58-
xcopy /E /Y build\Release\* release\windows\
57+
mkdir release
58+
xcopy /E /Y build\Release\* release\
5959
6060
- name: Package (macOS)
6161
if: runner.os == 'macOS'
@@ -74,14 +74,14 @@ jobs:
7474
if: runner.os == 'Windows'
7575
shell: powershell
7676
run: |
77-
Compress-Archive -Path release\windows -DestinationPath release\FrameExtractor-windows-${{ matrix.arch }}.zip
77+
Compress-Archive -Path release -DestinationPath FrameExtractor-windows-${{ matrix.arch }}.zip
7878
7979
- name: Upload Artifact
8080
uses: actions/upload-artifact@v4
8181
with:
8282
name: FrameExtractor-${{ matrix.os }}-${{ matrix.arch }}
8383
path: |
84-
release/*
84+
release/FrameExtractor-*
8585
8686
appimage:
8787
name: Build AppImage

CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,26 @@ find_package(Qt6 REQUIRED COMPONENTS Widgets)
1818
qt_standard_project_setup()
1919

2020
# Add main executable
21-
add_executable(FrameExtractor MACOSX_BUNDLE
21+
add_executable(FrameExtractor
2222
src/FrameExtractor.cpp
2323
src/utils/find_ffmpeg.cpp
2424
)
2525

26+
# Apply subsystem GUI (Windows only)
27+
if(WIN32)
28+
set_target_properties(FrameExtractor PROPERTIES WIN32_EXECUTABLE TRUE)
29+
endif()
30+
2631
# Link Qt libraries
2732
target_link_libraries(FrameExtractor
2833
Qt6::Widgets
2934
)
3035

3136
if (WIN32)
32-
target_link_libraries(FrameExtractor dwmapi)
37+
target_link_libraries(FrameExtractor dwmapi)
3338
endif()
3439

35-
# Optional: install target to AppDir structure
40+
# install target to AppDir structure
3641
install(TARGETS FrameExtractor DESTINATION usr/bin)
3742
install(FILES packaging/FrameExtractor.desktop DESTINATION .)
3843
install(FILES packaging/AppRun DESTINATION . PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ)

0 commit comments

Comments
 (0)