diff options
author | Saturneric <[email protected]> | 2021-07-20 16:39:52 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-07-20 16:39:52 +0000 |
commit | 965d41924bb4f98d383e09d2848a2972bc5e03a1 (patch) | |
tree | 233d5f8e1081d030b8df6a8d297bedd14af6406c | |
parent | Edit Project Configuration (diff) | |
download | GpgFrontend-965d41924bb4f98d383e09d2848a2972bc5e03a1.tar.gz GpgFrontend-965d41924bb4f98d383e09d2848a2972bc5e03a1.zip |
Update Workflow
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/release.yml | 23 | ||||
-rw-r--r-- | include/GpgFrontendBuildInfo.h | 44 | ||||
-rw-r--r-- | src/CMakeLists.txt | 2 |
3 files changed, 68 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af9e6f28..8ec9f553 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,19 @@ jobs: sudo apt-get -y install libglu1-mesa-dev libfontconfig1-dev libx11-xcb-dev libicu-dev libxcb-* if: matrix.os == 'ubuntu-16.04' + - name: Codesign Configuration (macOS) + env: + MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }} + MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }} + run: | + echo ${{MACOS_CERTIFICATE}} | base64 --decode > certificate.p12 + security create-keychain -p gpgfrontend build.keychain + security default-keychain -s build.keychain + security unlock-keychain -p gpgfrontend build.keychain + security import certificate.p12 -k build.keychain -P ${{MACOS_CERTIFICATE_PWD}} -T /usr/bin/codesign + security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k gpgfrontend build.keychain + if: matrix.os == 'macos-latest' + - name: Install Dependence (macOS) run: | brew install cmake git autoconf automake qt@5 gcc texinfo gettext libgpg-error libassuan gpgme openssl @@ -135,10 +148,20 @@ jobs: - name: Package App Bundle (macOS) run: | macdeployqt ${{github.workspace}}/build/release/GpgFrontend.app + codesign -s "Developer ID Application: Yu Hu (4279AWUL3X)" ${{github.workspace}}/build/release/GpgFrontend.app --deep -v mkdir ${{github.workspace}}/build/tmp/ hdiutil create ${{github.workspace}}/build/tmp/tmp.dmg -ov -volname "GpgFrontend" -fs HFS+ -srcfolder ${{github.workspace}}/build/release/ mkdir ${{github.workspace}}/build/artifactOut hdiutil convert ${{github.workspace}}/build/tmp/tmp.dmg -format UDZO -o ${{github.workspace}}/build/artifactOut/GpgFrontend.dmg + codesign -s "Developer ID Application: Yu Hu (4279AWUL3X)" GpgFrontend.dmg + if: matrix.os == 'macos-latest' + + - name: Notarize Release Build (macOS) + uses: devbotsxyz/xcode-notarize@v1 + with: + product-path: "Export/Rings.app" + appstore-connect-username: ${{ secrets.APPLE_DEVELOPER_ID }} + appstore-connect-password: ${{ secrets.APPLE_DEVELOPER_ID_SECRET }} if: matrix.os == 'macos-latest' - name: Package App Image (Linux) diff --git a/include/GpgFrontendBuildInfo.h b/include/GpgFrontendBuildInfo.h new file mode 100644 index 00000000..6e07a8bc --- /dev/null +++ b/include/GpgFrontendBuildInfo.h @@ -0,0 +1,44 @@ +/** + * This file is part of GPGFrontend. + * + * GPGFrontend is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Foobar is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Foobar. If not, see <https://www.gnu.org/licenses/>. + * + * The initial version of the source code is inherited from gpg4usb-team. + * Their source code version also complies with GNU General Public License. + * + * The source code version of this software was modified and released + * by Saturneric<[email protected]> starting on May 12, 2021. + * + */ + +#ifndef GPGFRONTEND_BUILD_INFO_H_IN +#define GPGFRONTEND_BUILD_INFO_H_IN + +#define VERSION_MAJOR 1 +#define VERSION_MINOR 2 +#define VERSION_PATCH 2 + +#define GIT_BRANCH_NAME "develop" +#define GIT_COMMIT_HASH "70053b17c76b010537a5c183621dc0c14e9e416e" + +#define PROJECT_NAME "GpgFrontend" +#define BUILD_VERSION "1.2.2_Darwin-20.5.0_x86_64_Release" +#define GIT_VERSION "develop_70053b17c76b010537a5c183621dc0c14e9e416e" +#define OS_PLATFORM 1 + +#define BUILD_FLAG 0 + +#define BUILD_TIMESTAMP "2021-07-20 21:56:45" + +#endif // GPGFRONTEND_BUILD_INFO_H_IN diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index deeabadb..0d1336ba 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -84,7 +84,7 @@ if(${CMAKE_BUILD_TYPE} STREQUAL "Release") add_executable(${AppName} MACOSX_BUNDLE ${ICON_RESOURCE} ${BASE_SOURCE} ${RESOURCE_FILES} ${QT5_MOCS}) set_target_properties(${AppName} PROPERTIES BUNDLE True - MACOSX_BUNDLE_GUI_IDENTIFIER org.gnupg.gpgfrontend + MACOSX_BUNDLE_GUI_IDENTIFIER pub.gpgfrontend.gpgfrontend MACOSX_BUNDLE_BUNDLE_NAME ${AppName} MACOSX_BUNDLE_LONG_VERSION_STRING ${BUILD_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION} |