feat(design-demo): debian packaging
This commit is contained in:
parent
37d5dd8b65
commit
5cd9d74189
12 changed files with 164 additions and 4 deletions
26
examples/design-demo/justfile
Executable file
26
examples/design-demo/justfile
Executable 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue