Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
debian package build script
Browse files Browse the repository at this point in the history
  • Loading branch information
wgh136 committed Aug 28, 2024
1 parent 2b26465 commit 7368dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions debian/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

with open('debian/debian.yaml', 'r') as f:
debianContent = f.read()
with open('debian/gui/pica.desktop', 'r') as f:
with open('debian/gui/pica-comic.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/pixes.desktop', 'w') as f:
with open('debian/gui/pica-comic.desktop', 'w') as f:
f.write(desktopContent.replace('{{Version}}', version))

subprocess.run(["flutter", "build", "linux"])
Expand All @@ -22,5 +22,5 @@

with open('debian/debian.yaml', 'w') as f:
f.write(debianContent)
with open('debian/gui/pixes.desktop', 'w') as f:
with open('debian/gui/pica-comic.desktop', 'w') as f:
f.write(desktopContent)
2 changes: 1 addition & 1 deletion debian/debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ control:
Version: {{Version}}
Architecture: amd64
Priority: optional
Depends:
Depends: libwebkit2gtk-4.1-0, libgtk-3-0
Maintainer: nyne
Description: pica comic

Expand Down

0 comments on commit 7368dd3

Please sign in to comment.