1
0

Update Workflow

This commit is contained in:
Saturneric 2021-07-21 00:39:52 +08:00
parent 5253df596c
commit 965d41924b
3 changed files with 68 additions and 1 deletions

View File

@ -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)

View File

@ -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<eric@bktus.com> 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

View File

@ -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}