modify pkgbuild and add modify websocket

pull/2/head
axtlos 3 years ago
parent 0791e4cc83
commit a74d47e47c

@ -5,7 +5,7 @@ pkgrel=3
pkgdesc="Flutter GUI for installing crystal"
arch=('any')
url="https://git.tar.black/crystal/programs/jade_gui"
depends=('gtk3' 'jade' 'openssl')
depends=('gtk3' 'jade' 'openssl' 'python-websockets' 'python-pycryptodome' 'inetutils')
makedepends=('clang' 'ninja' 'cmake' 'git' 'unzip' 'flutter' 'flutter-group-pacman-hook')
source=("gui::git+${url}.git")

@ -59,7 +59,7 @@ async def handler(websocket):
config = open('/tmp/jade.json', 'w')
config.write(data)
config.close()
subprocess.check_output(["bash", "-c", "sudo /usr/bin/jade config /tmp/jade.json"])
subprocess.check_output(["gnome-terminal", "--", "/bin/bash -c", "/usr/bin/sudo /usr/bin/jade config /tmp/jade.json"])
await websocket.send(json.dumps({"type": "response", "data": "Finished Installing"}))
else:
await websocket.send(json.dumps({"type": encrypt("response", aeskey, iv), "data": encrypt("Invalid Request", aeskey, iv)}))

Loading…
Cancel
Save