-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bundle galacteek-starter in flatpak and dmg too
[appimage] [deploy]
- Loading branch information
cipres
authored and
cipres
committed
May 22, 2022
1 parent
e802f50
commit f0ea79a
Showing
17 changed files
with
104 additions
and
262 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 |
---|---|---|
|
@@ -121,7 +121,7 @@ jobs: | |
# compilation | ||
ls /usr/local/Cellar/[email protected] | ||
echo "PKG_CONFIG_PATH=/usr/local/Cellar/[email protected]/1.1.1n/lib/pkgconfig:/usr/local/Cellar/openssl/1.1.1n/lib/pkgconfig" >> $GITHUB_ENV | ||
echo "PKG_CONFIG_PATH=/usr/local/Cellar/[email protected]/1.1.1o/lib/pkgconfig:/usr/local/Cellar/openssl/1.1.1o/lib/pkgconfig" >> $GITHUB_ENV | ||
- name: OS-specific vars (win) | ||
if: startsWith(matrix.os, 'windows') | ||
|
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,7 +1,11 @@ | ||
branch: ${oc.env:CI_COMMIT_BRANCH} | ||
wheels: | ||
- name: galacteek | ||
dist: | ||
- pkgname: galacteek | ||
disturl: ${oc.env:WHEEL_ASSET_URL} | ||
version: ${oc.env:GALACTEEK_VERSION} | ||
sha512_checksum_hex: ${oc.env:WHEEL_SHA512_CHECKSUM} | ||
git_commit_sha: ${oc.env:CI_COMMIT_SHA} | ||
pip_install_flags: | ||
- --no-deps | ||
|
||
- ${yaml_get:https://gitlab.com/galacteek/galacteek-ld-web4/-/releases/continuous-master/downloads/dist-wheel.yaml} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pkgname: galacteek | ||
disturl: ${oc.env:WHEEL_ASSET_URL} | ||
version: ${oc.env:GALACTEEK_VERSION} | ||
sha512_checksum_hex: ${oc.env:WHEEL_SHA512_CHECKSUM} | ||
git_commit_sha: ${oc.env:CI_COMMIT_SHA} | ||
pip_install_flags: | ||
- --no-deps |
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -64,12 +64,17 @@ WHEEL="$OLD_CWD"/dist/galacteek-${G_VERSION}-py3-none-any.whl | |
# install dependencies | ||
pip install wheel | ||
pip install -r "$OLD_CWD"/requirements.txt | ||
pip install $WHEEL | ||
# pip install $WHEEL | ||
pip install $WHEEL'[markdown-extensions]' | ||
|
||
# ui-pyqt (5.15) | ||
pip install $WHEEL'[ui-pyqt-5.15]' | ||
|
||
# starter | ||
pip install "git+https://gitlab.com/galacteek/galacteek-starter" | ||
pip uninstall -y galacteek | ||
pip uninstall -y galacteek-ld-web4 | ||
|
||
# leave conda env | ||
source deactivate | ||
|
||
|
@@ -121,15 +126,32 @@ cp /usr/local/Cellar/[email protected]/1.1.1*/lib/libcrypto*.dylib galacteek.app/Conte | |
cat > galacteek.app/Contents/MacOS/galacteek <<\EAT | ||
#!/usr/bin/env bash | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
export SSL_CERT_FILE="${DIR}/../Resources/lib/python3.7/site-packages/certifi/cacert.pem" | ||
export PYTHONPATH="${DIR}/../Resources/lib/python3.7/site-packages" | ||
export SSL_CERT_FILE="${PYTHONPATH}/certifi/cacert.pem" | ||
export GALACTEEK_MAGIC_DBPATH="${DIR}/../Resources/share/file/magic-galacteek.mgc" | ||
export DYLD_FALLBACK_LIBRARY_PATH="$DYLD_FALLBACK_LIBRARY_PATH:$DIR/../Resources/lib" | ||
export PATH=$PATH:$DIR/../Resources/bin | ||
"$DIR/../Resources/bin/python" "$DIR/../Resources/bin/galacteek-starter" --from-dmg | ||
EAT | ||
|
||
# create entry script for galacteek | ||
cat > galacteek.app/Contents/MacOS/galacteek-debug <<\EAT | ||
#!/usr/bin/env bash | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
export PYTHONPATH="${DIR}/../Resources/lib/python3.7/site-packages" | ||
export SSL_CERT_FILE="${PYTHONPATH}/certifi/cacert.pem" | ||
export GALACTEEK_MAGIC_DBPATH="${DIR}/../Resources/share/file/magic-galacteek.mgc" | ||
export DYLD_FALLBACK_LIBRARY_PATH="$DYLD_FALLBACK_LIBRARY_PATH:$DIR/../Resources/lib" | ||
export PATH=$PATH:$DIR/../Resources/bin | ||
"$DIR/../Resources/bin/python" $DIR/../Resources/bin/galacteek --from-dmg | ||
"$DIR/../Resources/bin/python" "$DIR/../Resources/bin/galacteek-starter" --from-dmg -d | ||
EAT | ||
|
||
chmod a+x galacteek.app/Contents/MacOS/galacteek | ||
chmod a+x galacteek.app/Contents/MacOS/galacteek-debug | ||
|
||
# bloat deletion sequence | ||
pushd galacteek.app/Contents/Resources | ||
|
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.