-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
1,420 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
if: matrix.os == 'windows-latest' || matrix.os == 'macos-10.15' | ||
if: matrix.os == 'windows-latest' || matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
|
@@ -58,7 +58,7 @@ jobs: | |
brew unlink gettext && brew link --force gettext | ||
brew link qt@5 | ||
brew link [email protected] --force | ||
if: matrix.os == 'macos-10.15' | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- name: Build gpg-error (Linux) | ||
run: | | ||
|
@@ -130,7 +130,7 @@ jobs: | |
run: | | ||
cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGPGFRONTEND_BUILD_TYPE_TEST_UI=ON | ||
cmake --build ${{github.workspace}}/build --config {{$env.BUILD_TYPE}} -- -v | ||
if: matrix.os == 'macos-10.15' | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- name: Configure CMake & Build Binary(Windows) | ||
shell: msys2 {0} | ||
|
@@ -158,7 +158,7 @@ jobs: | |
with: | ||
name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}} | ||
path: ${{github.workspace}}/build/release/* | ||
if: matrix.os == 'macos-10.15' | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- name: Upload Artifact(Windows) | ||
uses: actions/upload-artifact@master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
if: matrix.os == 'windows-2019' || matrix.os == 'macos-10.15' | ||
if: matrix.os == 'windows-2019' || matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
|
@@ -46,7 +46,7 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get -y install build-essential binutils git autoconf automake gettext texinfo | ||
sudo apt-get -y install gcc-8 g++-8 ninja-build | ||
sudo apt-get -y install libconfig++-dev libboost-all-dev libarchive-dev libssl-dev | ||
sudo apt-get -y install libconfig++-dev libarchive-dev libssl-dev | ||
sudo apt-get -y install gpgsm libxcb-xinerama0 libxcb-icccm4-dev libcups2-dev libdrm-dev libegl1-mesa-dev | ||
sudo apt-get -y install libgcrypt11-dev libnss3-dev libpci-dev libpulse-dev libudev-dev libxtst-dev gyp | ||
sudo apt-get -y install libglu1-mesa-dev libfontconfig1-dev libx11-xcb-dev libicu-dev libxcb-image0 | ||
|
@@ -57,6 +57,23 @@ jobs: | |
sudo update-alternatives --set g++ "/usr/bin/g++-8" | ||
if: matrix.os == 'ubuntu-18.04' | ||
|
||
- name: Install Boost (Linux) | ||
uses: MarkusJx/[email protected] | ||
id: install-boost | ||
with: | ||
# REQUIRED: Specify the required boost version | ||
# A list of supported versions can be found here: | ||
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json | ||
boost_version: 1.78.0 | ||
# OPTIONAL: Specify a platform version | ||
platform_version: 18.04 | ||
# OPTIONAL: Specify an architecture | ||
arch: x86 | ||
|
||
# NOTE: If a boost version matching all requirements cannot be found, | ||
# this build step will fail | ||
if: matrix.os == 'ubuntu-18.04' | ||
|
||
- name: Codesign Configuration (macOS) | ||
run: | | ||
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12 | ||
|
@@ -75,7 +92,7 @@ jobs: | |
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles | ||
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles | ||
if: matrix.os == 'macos-10.15' | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- name: Install Dependence (macOS) | ||
run: | | ||
|
@@ -84,7 +101,7 @@ jobs: | |
brew unlink gettext && brew link --force gettext | ||
brew link qt@5 | ||
brew link [email protected] --force | ||
if: matrix.os == 'macos-10.15' | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- name: Build gpg-error (Linux) | ||
run: | | ||
|
@@ -147,7 +164,7 @@ jobs: | |
- name: Build GpgFrontend (Linux) | ||
# Build your GpgFrontend with the given configuration | ||
run: | | ||
cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBOOST_ROOT=${{steps.install-boost.outputs.BOOST_ROOT}} | ||
cmake --build ${{github.workspace}}/build --config {{$env.BUILD_TYPE}} -- -v | ||
if: matrix.os == 'ubuntu-18.04' | ||
|
||
|
@@ -169,7 +186,7 @@ jobs: | |
xcodebuild -exportArchive -archivePath ${{github.workspace}}/build/GpgFrontend.xcarchive \ | ||
-exportOptionsPlist ${{github.workspace}}/build/ExportOptions.plist \ | ||
-exportPath ${{github.workspace}}/build/package/ | ||
if: matrix.os == 'macos-10.15' | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- name: Package & Sign App Bundle (macOS) | ||
run: | | ||
|
@@ -184,7 +201,7 @@ jobs: | |
${{github.workspace}}/build/artifactOut/GpgFrontend-${{steps.vars.outputs.sha_short}}-x86_64.dmg | ||
mv ${{github.workspace}}/build/GpgFrontend.app.zip \ | ||
${{github.workspace}}/build/GpgFrontend-${{steps.vars.outputs.sha_short}}-x86_64.zip | ||
if: matrix.os == 'macos-10.15' | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- name: Notarize Release Build (macOS) | ||
run: | | ||
|
@@ -193,7 +210,7 @@ jobs: | |
--primary-bundle-id ${{secrets.GPGFRONTEND_XOCDE_APPID}} \ | ||
-u ${{secrets.APPLE_DEVELOPER_ID}} \ | ||
-p ${{secrets.APPLE_DEVELOPER_ID_SECRET}} | ||
if: matrix.os == 'macos-10.15' | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- name: Package App Image (Linux) | ||
run: | | ||
|
@@ -226,7 +243,7 @@ jobs: | |
with: | ||
name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}} | ||
path: ${{github.workspace}}/build/artifactOut/* | ||
if: matrix.os == 'macos-10.15' | ||
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' || matrix.os == 'macos-12' | ||
|
||
- name: Upload Artifact(Windows) | ||
uses: actions/upload-artifact@master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
[submodule "third_party/gpgme"] | ||
path = third_party/gpgme | ||
url = https://github.com/saturneric/gpgme | ||
url = https://git.bktus.com/GnuPG/gpgme.git | ||
[submodule "third_party/libassuan"] | ||
path = third_party/libassuan | ||
url = https://github.com/saturneric/libassuan | ||
url = https://git.bktus.com/GnuPG/libassuan.git | ||
[submodule "third_party/libgpg-error"] | ||
path = third_party/libgpg-error | ||
url = https://github.com/saturneric/libgpg-error | ||
url = https://git.bktus.com/GnuPG/libgpg-error.git | ||
[submodule "third_party/json"] | ||
path = third_party/json | ||
url = https://github.com/saturneric/json | ||
url = https://git.bktus.com/GpgFrontend/json.git | ||
[submodule "third_party/easyloggingpp"] | ||
path = third_party/easyloggingpp | ||
url = https://github.com/saturneric/easyloggingpp | ||
url = https://git.bktus.com/GpgFrontend/easyloggingpp.git | ||
[submodule "third_party/qt-aes"] | ||
path = third_party/qt-aes | ||
url = https://github.com/saturneric/Qt-AES | ||
url = https://git.bktus.com/GpgFrontend/Qt-AES.git | ||
[submodule "third_party/libarchive"] | ||
path = third_party/libarchive | ||
url = https://github.com/saturneric/libarchive.git | ||
url = https://git.bktus.com/GpgFrontend/libarchive.git | ||
[submodule "third_party/libconfig"] | ||
path = third_party/libconfig | ||
url = https://github.com/saturneric/libconfig | ||
url = https://git.bktus.com/GpgFrontend/libconfig.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Translators: | ||
Fabian Hêche <[email protected]> (fr_FR) | ||
huzpsb <[email protected]> (zh_CN) | ||
Google Translation Machine | ||
|
||
Reviewers: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ It is recommended to use plain text to contact me by email, but HTML is not reco | |
|
||
Name: Saturneric, Eric or Erich. | ||
|
||
Email: [[email protected]](mailto:[email protected]) | ||
Email: [[email protected]](mailto:[email protected]) (Hosted in the Federal Republic of Germany) | ||
|
||
Tips: BKTUS(Bakantu Union) is not a company, it is my personal domain name. | ||
Tips: BKTUS(Bakantu union us) is not a company, it is my personal domain name. | ||
|
||
## Languages | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,6 +271,10 @@ if (APPLICATION_BUILD) | |
else () | ||
message(STATUS "Link Application Library For Linux") | ||
target_link_libraries(${AppName} crypto pthread) | ||
# link for freebsd | ||
if(FREEBSD) | ||
target_link_libraries(${AppName} intl) | ||
endif() | ||
# issue on filesystem support of gcc | ||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 9.0) | ||
target_link_libraries(${AppName} stdc++fs) | ||
|
@@ -315,15 +319,8 @@ if (LINUX AND LINUX_INSTALL_SOFTWARE) | |
DESTINATION ${CMAKE_INSTALL_FULL_LOCALEDIR}) | ||
endif () | ||
|
||
cmake_host_system_information(RESULT PRETTY_NAME QUERY DISTRIB_PRETTY_NAME) | ||
cmake_host_system_information(RESULT DISTRO QUERY DISTRIB_INFO) | ||
|
||
foreach(VAR IN LISTS DISTRO) | ||
message(STATUS "${VAR}=`${${VAR}}`") | ||
endforeach() | ||
|
||
if (APP_PACKAGE_DEB) | ||
message(STATUS "Configure Deb Package") | ||
message(STATUS "Configure DEB Package") | ||
SET(CPACK_GENERATOR "DEB") | ||
set(CPACK_INSTALL_PREFIX "/usr/local/") | ||
set(CPACK_PACKAGE_NAME "gpgfrontend") | ||
|
@@ -345,8 +342,9 @@ if (LINUX AND LINUX_INSTALL_SOFTWARE) | |
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}") | ||
include(CPack) | ||
endif () | ||
if (APP_PACKAGE_RPM) | ||
message(STATUS "Configure Rpm Package") | ||
|
||
if (APP_PACKAGE_RPM) | ||
message(STATUS "Configure RPM Package") | ||
SET(CPACK_GENERATOR "RPM") | ||
set(CPACK_INSTALL_PREFIX "/usr/local/") | ||
set(CPACK_PACKAGE_NAME "gpgfrontend") | ||
|
@@ -360,6 +358,21 @@ if (LINUX AND LINUX_INSTALL_SOFTWARE) | |
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}") | ||
include(CPack) | ||
endif () | ||
|
||
if (APP_PACKAGE_FREEBSD) | ||
message(STATUS "Configure PKG Package") | ||
SET(CPACK_GENERATOR "FREEBSD") | ||
set(CPACK_INSTALL_PREFIX "/usr/local/") | ||
set(CPACK_FREEBSD_PACKAGE_NAME "gpgfrontend") | ||
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64") | ||
set(CPACK_PACKAGE_CONTACT "[email protected]") | ||
SET(CPACK_FREEBSD_PACKAGE_MAINTAINER "Saturneric") | ||
|
||
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}") | ||
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}") | ||
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}") | ||
include(CPack) | ||
endif () | ||
endif () | ||
|
||
message(STATUS "Resource Files: ${RESOURCE_OUTPUT_DIRECTORY}") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.