feat(design-demo): debian packaging

This commit is contained in:
Michael Aaron Murphy 2023-09-13 15:19:58 +02:00 committed by Michael Murphy
parent 37d5dd8b65
commit 5cd9d74189
12 changed files with 164 additions and 4 deletions

26
examples/design-demo/justfile Executable file
View file

@ -0,0 +1,26 @@
!include ../just/rust.just
!include ../just/packaging.just
rootdir := ''
prefix := '/usr'
# Name of the application's binary
bin-name := 'cosmic-design-demo'
# The AppID of the application
app-id := 'com.system76.CosmicDesignDemo'
# Application binary executable source and install destination
bin-src := 'target' / 'release' / bin-name
bin-dst := clean(rootdir / prefix) / 'bin' / bin-name
# Desktop file source and install destination
desktop-file := app-id + '.desktop'
desktop-src := 'examples' / 'design-demo' / 'resources' / desktop-file
desktop-dst := clean(rootdir / prefix) / 'share' / 'applications' / desktop-file
# Recipe for compiling the application
build *args:
cargo build -p cosmic-design-demo {{args}}
install: (install-bin bin-src bin-dst) (install-file desktop-src desktop-dst)