Skip to content

Commit

Permalink
Merge branch 'dev/2.1.4/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
saturneric committed Aug 17, 2024
2 parents 37bcfb4 + b231eec commit afd38aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
run: |
brew install cmake autoconf automake texinfo gettext openssl@3
brew install ninja libarchive gpgme googletest
brew install create-dmg
brew link openssl@3 --force
if: matrix.os == 'macos-13' || matrix.os == 'macos-12' || matrix.os == 'macos-14'

Expand Down Expand Up @@ -244,8 +245,7 @@ jobs:
hdiutil create ${{github.workspace}}/build/tmp.dmg -ov \
-volname "GpgFrontend" -fs HFS+ -srcfolder ${{github.workspace}}/build/package/
mkdir ${{github.workspace}}/build/final-artifact
hdiutil convert ${{github.workspace}}/build/tmp.dmg -format UDZO -o ${{github.workspace}}/build/final-artifact/GpgFrontend.dmg
codesign -s "${{secrets.GPGFRONTEND_XOCDE_CODE_SIGN_IDENTITY}}" ${{github.workspace}}/build/final-artifact/GpgFrontend.dmg
create-dmg --codesign "${{secrets.GPGFRONTEND_XOCDE_CODE_SIGN_IDENTITY}}" --volicon "${{github.workspace}}/resource/lfs/icns/GpgFrontend.icns" --volname GpgFrontend --app-drop-link 600 185 --window-size 800 400 ${{github.workspace}}/build/final-artifact/GpgFrontend.dmg ${{github.workspace}}/build/package/GpgFrontend.app
mv ${{github.workspace}}/build/final-artifact/GpgFrontend.dmg \
${{github.workspace}}/build/final-artifact/GpgFrontend-${{env.sha_short}}-x86_64.dmg
mv ${{github.workspace}}/build/GpgFrontend.app.zip \
Expand Down
Binary file added resource/lfs/icns/GpgFrontend.icns
Binary file not shown.
2 changes: 1 addition & 1 deletion src/core/function/CacheManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class CacheManager::Impl : public QObject {

// get cache data list from file system
QJsonArray registered_key_list;
if (stored_data->isArray()) {
if (stored_data.has_value() && stored_data->isArray()) {
registered_key_list = stored_data->array();
} else {
GpgFrontend::DataObjectOperator::GetInstance().SaveDataObj(
Expand Down

0 comments on commit afd38aa

Please sign in to comment.