remove .env from flutter app and update flutpak
This commit is contained in:
parent
df7847c666
commit
d95eac0963
7 changed files with 22 additions and 20 deletions
|
|
@ -11,8 +11,26 @@ finish-args:
|
|||
- --socket=wayland
|
||||
- --device=dri
|
||||
modules:
|
||||
- name: pdfium
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
- mkdir -p /app/src/pdfium/
|
||||
- cp -r * /app/src/pdfium/
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F7881/pdfium-linux-x64.tgz
|
||||
sha256: 1470e21b8b4a3b4ad7f85684e2da11d94f3b69a86d81dee11b9b6709d927ac1d
|
||||
only-arches: [x86_64]
|
||||
strip-components: 0
|
||||
- type: archive
|
||||
url: https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F7881/pdfium-linux-arm64.tgz
|
||||
sha256: ee7f7b7d5468958336a818c1cd580bdd20972846b7377b13f9a923d92d1d4674
|
||||
only-arches: [aarch64]
|
||||
strip-components: 0
|
||||
|
||||
- name: mih
|
||||
buildsystem: simple
|
||||
subdir: mih_ui
|
||||
build-options:
|
||||
arch:
|
||||
x86_64:
|
||||
|
|
@ -26,8 +44,10 @@ modules:
|
|||
env:
|
||||
PUB_CACHE: /run/build/mih/.pub-cache
|
||||
build-commands:
|
||||
- mkdir -p "$BUNDLE_PATH/../pdfium-src/"
|
||||
- cp -r /app/src/pdfium/* "$BUNDLE_PATH/../pdfium-src/"
|
||||
- flutter pub get --offline
|
||||
- flutter build linux --release --no-pub
|
||||
- flutter build linux --release --no-pub -t lib/main_prod.dart
|
||||
- mkdir -p /app/mih
|
||||
- cp -r "$BUNDLE_PATH"/. /app/mih/
|
||||
- install -Dm755 flatpak/mih-wrapper.sh /app/bin/mih
|
||||
|
|
@ -36,4 +56,4 @@ modules:
|
|||
- install -Dm644 app/share/icons/hicolor/256x256/apps/za.co.mzansiinnovationhub.mih.png /app/share/icons/hicolor/256x256/apps/za.co.mzansiinnovationhub.mih.png
|
||||
sources:
|
||||
- type: git
|
||||
url: https://git.mzansi-innovation-hub.co.za/yaso_meth/mih-project.git
|
||||
url: https://github.com/yaso-meth/mih-project.git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue