aboutsummaryrefslogtreecommitdiff
path: root/com.github.rimerosolutions.entrusted
diff options
context:
space:
mode:
Diffstat (limited to 'com.github.rimerosolutions.entrusted')
-rw-r--r--com.github.rimerosolutions.entrusted/README.md5
-rw-r--r--com.github.rimerosolutions.entrusted/com.github.rimerosolutions.entrusted.json58
-rw-r--r--com.github.rimerosolutions.entrusted/entrusted-run7
3 files changed, 70 insertions, 0 deletions
diff --git a/com.github.rimerosolutions.entrusted/README.md b/com.github.rimerosolutions.entrusted/README.md
new file mode 100644
index 0000000..b3d06eb
--- /dev/null
+++ b/com.github.rimerosolutions.entrusted/README.md
@@ -0,0 +1,5 @@
+# [Entrusted](https://github.com/rimerosolutions/entrusted)
+
+this works, but it uses qemu and the live iso to host the webserver and then uses [nativefier](https://github.com/nativefier/nativefier) to create a window that connects to the webserver.
+
+The start will take very long since the grub timeout in the iso is 30 seconds long and can't be skipped due to the qemu vm running headless with no way to control it.
diff --git a/com.github.rimerosolutions.entrusted/com.github.rimerosolutions.entrusted.json b/com.github.rimerosolutions.entrusted/com.github.rimerosolutions.entrusted.json
new file mode 100644
index 0000000..144edf0
--- /dev/null
+++ b/com.github.rimerosolutions.entrusted/com.github.rimerosolutions.entrusted.json
@@ -0,0 +1,58 @@
+{
+ "app-id": "com.github.rimerosolutions.entrusted",
+ "runtime": "org.freedesktop.Platform",
+ "runtime-version": "21.08",
+ "base": "org.electronjs.Electron2.BaseApp",
+ "base-version": "21.08",
+ "sdk": "org.freedesktop.Sdk",
+ "command": "entrusted-run",
+ "modules": [
+ {
+ "name": "qemu",
+ "config-opts": [
+ "--disable-user",
+ "--enable-kvm",
+ "--disable-spice",
+ "--disable-opengl",
+ "--disable-virglrenderer",
+ "--disable-usb-redir",
+ "--disable-smartcard",
+ "--python=/bin/python3",
+ "--target-list=x86_64-softmmu"
+ ],
+ "sources": [
+ {
+ "type": "archive",
+ "url": "https://download.qemu.org/qemu-6.2.0.tar.xz",
+ "sha256": "68e15d8e45ac56326e0b9a4afa8b49a3dfe8aba3488221d098c84698bca65b45"
+ }
+ ]
+ },
+ {
+ "name": "entrusted",
+ "buildsystem": "simple",
+ "sources": [
+ {
+ "type": "archive",
+ "path": "./entrusted-linux-x64.tar.xz"
+ },
+ {
+ "type": "file",
+ "path": "./entrusted-run"
+ },
+ {
+ "type": "file",
+ "url": "https://github.com/rimerosolutions/entrusted/releases/download/0.2.4/entrusted-livecd-amd64-0.2.4.iso",
+ "sha256": "0d88d2c04f4b7bc7a7fdc7b2b494347ba970801197d42f05ead53e0eeb4d3fee"
+ "dest-filename": "entrusted.iso"
+ }
+ ],
+ "build-commands": [
+ "mkdir -p /app/bin/entrusted",
+ "cp -r * /app/bin/entrusted/.",
+ "install entrusted.iso /app/bin/entrusted/entrusted.iso",
+ "install -Dm755 entrusted-run /app/bin/entrusted-run"
+ ]
+ }
+ ]
+}
diff --git a/com.github.rimerosolutions.entrusted/entrusted-run b/com.github.rimerosolutions.entrusted/entrusted-run
new file mode 100644
index 0000000..892a32e
--- /dev/null
+++ b/com.github.rimerosolutions.entrusted/entrusted-run
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+/app/bin/qemu-system-x86_64 -name entrusted,process=entrusted -pidfile ~/entrusted.pid -machine q35,smm=off,vmport=off -enable-kvm -cpu host,kvm=on -smp cores=2,threads=2,sockets=1 -m 2G -device virtio-balloon -smbios type=2,manufacturer="Quickemu Project",product=Quickemu,version=3.15,serial=0xDEADBEEF,location=quickemu.com,asset=entrusted -display none -rtc base=localtime,clock=host,driftfix=slew -monitor none -serial mon:stdio -device virtio-net,netdev=nic -netdev user,hostname=entrusted,hostfwd=tcp::13000-:13000,id=nic -drive media=cdrom,index=0,file=/app/bin/entrusted/entrusted.iso &
+zypak-wrapper /app/bin/entrusted/entrusted "$@"
+kill -SIGTERM $(cat ~/entrusted.pid)
+rm ~/guest.in
+rm ~/guest.out
+