mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
build scripts & issue templates
This commit is contained in:
26
debian/build.py
vendored
Normal file
26
debian/build.py
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import subprocess
|
||||
|
||||
debianContent = ''
|
||||
desktopContent = ''
|
||||
version = ''
|
||||
|
||||
with open('debian/debian.yaml', 'r') as f:
|
||||
debianContent = f.read()
|
||||
with open('debian/gui/venera.desktop', 'r') as f:
|
||||
desktopContent = f.read()
|
||||
with open('pubspec.yaml', 'r') as f:
|
||||
version = str.split(str.split(f.read(), 'version: ')[1], '+')[0]
|
||||
|
||||
with open('debian/debian.yaml', 'w') as f:
|
||||
f.write(debianContent.replace('{{Version}}', version))
|
||||
with open('debian/gui/venera.desktop', 'w') as f:
|
||||
f.write(desktopContent.replace('{{Version}}', version))
|
||||
|
||||
subprocess.run(["flutter", "build", "linux"])
|
||||
|
||||
subprocess.run(["$HOME/.pub-cache/bin/flutter_to_debian"], shell=True)
|
||||
|
||||
with open('debian/debian.yaml', 'w') as f:
|
||||
f.write(debianContent)
|
||||
with open('debian/gui/venera.desktop', 'w') as f:
|
||||
f.write(desktopContent)
|
17
debian/debian.yaml
vendored
Normal file
17
debian/debian.yaml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
flutter_app:
|
||||
command: venera
|
||||
arch: x64
|
||||
parent: /usr/local/lib
|
||||
nonInteractive: false
|
||||
|
||||
control:
|
||||
Package: venera
|
||||
Version: {{Version}}
|
||||
Architecture: amd64
|
||||
Priority: optional
|
||||
Depends: libwebkit2gtk-4.1-0, libgtk-3-0
|
||||
Maintainer: nyne
|
||||
Description: venera
|
||||
|
||||
#options:
|
||||
# exec_out_dir: debian/packages
|
9
debian/gui/venera.desktop
vendored
Normal file
9
debian/gui/venera.desktop
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Version={{Version}}
|
||||
Name=Venera
|
||||
GenericName=Venera
|
||||
Comment=venera
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Utility
|
||||
Keywords=Flutter;comic;images;
|
BIN
debian/gui/venera.png
vendored
Normal file
BIN
debian/gui/venera.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Reference in New Issue
Block a user