Skip to content

Commit

Permalink
boolr: saves folder workaround and manifest update
Browse files Browse the repository at this point in the history
  • Loading branch information
tinywrkb committed Dec 27, 2020
1 parent 248d8c5 commit 0080704
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 29 deletions.
73 changes: 45 additions & 28 deletions me.boolr.boolr/me.boolr.boolr.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# TODO: build from source and master branch
# TODO: build from master branch
# Known issues
# * no access to fllesystem
# * can't save new boards, need to go through "sandbox mode"
app-id: me.boolr.boolr
runtime: org.freedesktop.Platform
runtime-version: '20.08'
sdk: org.freedesktop.Sdk
command: boolr
rename-desktop-file: boolr.desktop
rename-icon: boolr
separate-locales: false
cleanup:
- /include
Expand All @@ -17,33 +14,13 @@ cleanup:
- '*.la'
finish-args:
- --device=dri
- --filesystem=home
- --filesystem=xdg-documents
- --filesystem=xdg-download
- --filesystem=xdg-pictures
- --share=ipc
- --socket=wayland
- --share=network
- --socket=x11
modules:
- name: boolr
buildsystem: simple
build-commands:
- install -D apply_extra /app/bin/apply_extra
- install -Dm755 boolr /app/bin/boolr
- install -Dm644 boolr.desktop /app/share/applications/boolr.desktop
- install -Dm644 boolr.png /app/share/icons/hicolor/128x128/apps/boolr.png
sources:
- type: script
dest-filename: apply_extra
commands:
- unzip boolr.zip
- rm -f boolr.zip
- mv BOOLR-linux-x64 boolr
- rm -f boolr/boolr.desktop
- type: extra-data
filename: boolr.zip
url: https://github.com/GGBRW/BOOLR/releases/download/v1.0.3/BOOLR-v1.0.3-linux-x86_64.zip
sha256: 94fa88d65442687aa6aa4ac2d3f5a0c76ed13d45adf98bcc6609f3118c90bb29
size: 48267385
- type: dir
path: resources
- ../flathub-shared-modules/gtk2/gtk2.json
- name: gconf
build-options:
Expand All @@ -58,6 +35,15 @@ modules:
- type: archive
url: https://gitlab.gnome.org/Archive/gconf/-/archive/3.2.6/gconf-3.2.6.tar.gz
sha256: d73497412da91896a110853b5fc62f906211d0e0e61a5e535a34e55e0d445e78
cleanup:
- /bin
- /etc
- /lib/girepository-1.0
- /share/aclocal
- /share/dbus-1
- /share/gir-1.0
- /share/man
- /share/sgml
modules:
- name: gnome-common
sources:
Expand All @@ -66,10 +52,41 @@ modules:
sha256: 22569e370ae755e04527b76328befc4c73b62bfd4a572499fde116b8318af8cf
modules:
- ../flathub-shared-modules/intltool/intltool-0.51.json
cleanup:
- '*'
- ../flathub-shared-modules/dbus-glib/dbus-glib-0.110.json
- name: pango-1_42
buildsystem: meson
config-opts:
- -Dgir=false
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/pango.git
commit: a6a89818246b0b14c0fe3d00d6120929fc0a11d9
cleanup:
- /bin
- /libexec
- /share/installed-tests
- /share/man
- name: boolr
buildsystem: simple
build-commands:
- install -D apply_extra /app/bin/apply_extra
- install -Dm755 boolr /app/bin/boolr
- install -Dm644 me.boolr.boolr.desktop -t /app/share/applications/
- install -Dm644 me.boolr.boolr.png -t /app/share/icons/hicolor/128x128/apps/
sources:
- type: script
dest-filename: apply_extra
commands:
- bsdtar -xf boolr.zip --strip-components=1
- rm -f boolr.zip
- rm -f boolr.desktop
- sed -i 's#^\(const savesFolder =\).*#\1 process.env.XDG_CONFIG_HOME + "/BOOLR/saves/";\nif (!fs.existsSync(savesFolder)) fs.mkdir(savesFolder);#' resources/app/app/js/saves.js
- type: extra-data
filename: boolr.zip
url: https://github.com/GGBRW/BOOLR/releases/download/v1.0.3/BOOLR-v1.0.3-linux-x86_64.zip
sha256: 94fa88d65442687aa6aa4ac2d3f5a0c76ed13d45adf98bcc6609f3118c90bb29
size: 48267385
- type: dir
path: resources
2 changes: 1 addition & 1 deletion me.boolr.boolr/resources/boolr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

exec /app/extra/boolr/BOOLR "$@"
exec /app/extra/BOOLR "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ Comment=A digital logic simulator
Exec=boolr %U
Terminal=false
Type=Application
Icon=me.boolr.boolr
StartupNotify=true
Categories=Development
File renamed without changes

0 comments on commit 0080704

Please sign in to comment.