remove libnss3.so and libnssutil3.so from AppImage (#1702)

This commit is contained in:
Le Tan 2021-02-25 20:18:08 +08:00 committed by GitHub
parent 551b7d45f4
commit f51a6510aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 7 deletions

View File

@ -86,21 +86,37 @@ jobs:
# Move the lib out to avoid duplication
mv AppDir/usr/lib ./
LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
# copy translations
# Copy translations
mkdir -p AppDir/usr/translations
cp $Qt5_Dir/translations/qt_zh_CN.qm AppDir/usr/translations
# package qt5ct (EXTRA_QT_PLUGINS seems not work)
# Package qt5ct (EXTRA_QT_PLUGINS seems not work)
# EXTRA_QT_PLUGINS="platformthemes/libqt5ct.so;styles/libqt5ct-style.so"
mkdir -p AppDir/usr/plugins/platformthemes
mkdir -p AppDir/usr/plugins/styles
cp $Qt5_Dir/plugins/platformthemes/* AppDir/usr/plugins/platformthemes/
cp $Qt5_Dir/plugins/styles/* AppDir/usr/plugins/styles/
# package libssl.so and libcrypto.so
# Package libssl.so and libcrypto.so
Qt5_Tools=$Qt5_Dir/../../Tools
linuxdeploy-x86_64.AppImage --appdir ./AppDir --plugin qt --output appimage -l $Qt5_Tools/OpenSSL/binary/lib/libcrypto.so.1.1 -l $Qt5_Tools/OpenSSL/binary/lib/libssl.so.1.1
tree AppDir
working-directory: ${{runner.workspace}}/build
- name: Fix Package
run: |
mkdir fixpackage
mv VNote*.AppImage ./fixpackage
pushd fixpackage
# Extract the AppImage
./VNote*.AppImage --appimage-extract
# Remove libnss3.so and libnssutil3.so
rm ./squashfs-root/usr/lib/libnss*.so
# Re-package
rm VNote*.AppImage
linuxdeploy-plugin-appimage-x86_64.AppImage --appdir=./squashfs-root
mv VNote*.AppImage ../
popd
mv VNote*.AppImage vnote-linux-x64_v${{env.VNOTE_VER}}.AppImage
cp vnote-linux-x64_v${{env.VNOTE_VER}}.AppImage vnote-linux-x64.AppImage
tree AppDir
working-directory: ${{runner.workspace}}/build
- name: Archive Artifacts

View File

@ -1918,7 +1918,7 @@
<message>
<location filename="../../../widgets/notebookexplorer.cpp" line="337"/>
<source>View By Name (Reversed)</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../../../widgets/notebookexplorer.cpp" line="342"/>
@ -1928,7 +1928,7 @@
<message>
<location filename="../../../widgets/notebookexplorer.cpp" line="347"/>
<source>View By Created Time (Reversed)</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../../../widgets/notebookexplorer.cpp" line="352"/>
@ -1938,7 +1938,7 @@
<message>
<location filename="../../../widgets/notebookexplorer.cpp" line="357"/>
<source>View By Modified Time (Reversed)</source>
<translation></translation>
<translation></translation>
</message>
</context>
<context>