Skip to content

Commit

Permalink
Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
khrykin committed Feb 14, 2020
2 parents 3df5df5 + abf7ca1 commit 50d6587
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,18 @@ if (WIN32)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/deployment/Strategr_x64.template.iss"
"${CMAKE_CURRENT_SOURCE_DIR}/deployment/Strategr_x64.iss")

# Deploy Qt

add_custom_command(TARGET Strategr
POST_BUILD
COMMAND ${Qt5_DIR}/../../../bin/windeployqt.exe --no-translations ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})

# Cleanup deployed dir

add_custom_command(TARGET Strategr
POST_BUILD
COMMAND del /Q /F /S "*.manifest")

endif (CMAKE_BUILD_TYPE MATCHES Rel)
endif ()

Expand Down
Binary file removed deployment/package.dmg
Binary file not shown.
3 changes: 2 additions & 1 deletion scripts/macos_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ codesign -s "$DEVELOPER_CERTIFACATE_ID" \
--keychain "$HOME/Library/Keychains/login.keychain" "$dmg_path"

rm -rf "$dmg_source_path"
rm "$dmg_template_path"

echo ".dmg created"

echo "Creating updater archive"
cd "$build_path" || exit
zip -r --symlinks "macOS_update.zip" "Strategr.app"
zip -r --symlinks "Strategr.macOS.v$version.zip" "Strategr.app"
echo "Updater archive created"

4 changes: 2 additions & 2 deletions scripts/release_latest.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

scripts/release.sh "$(scripts/repo_name.sh)" "$(git describe)" -- \
"./builds/macOS/Release/Strategr-$(git describe).dmg" \
"./builds/macOS/Release/macOS_update.zip"
"./builds/macOS/Release/Strategr.$(git describe).dmg" \
"./builds/macOS/Release/Strategr.macOS.$(git describe).zip"

0 comments on commit 50d6587

Please sign in to comment.