Skip to content

Commit

Permalink
Added config for debian release with cargo deb
Browse files Browse the repository at this point in the history
The resulting structure is:
```
├── control
│   ├── control
│   └── sha256sums
├── debian-binary
└── usr
    ├── bin
    │   ├── plastic
    │   └── plastic_tui
    └── share
        ├── applications
        │   └── plastic.desktop
        ├── doc
        │   └── plastic
        │       ├── copyright
        │       └── README.md
        ├── icons
        │   └── plastic-icon.png
        ├── licenses
        │   └── plastic
        │       └── LICENSE
        └── man
            └── man1
                └── plastic.1.gz
```

Signed-off-by: Amjad Alsharafi <[email protected]>
  • Loading branch information
Amjad50 committed Oct 27, 2024
1 parent 979bbde commit 318606b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
9 changes: 9 additions & 0 deletions package/plastic.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Plastic - NES
Comment=Plastic - NES Emulator
Icon=/usr/share/icons/plastic-icon.png
Exec=/usr/bin/plastic
Terminal=false
Categories=Game;

2 changes: 1 addition & 1 deletion plastic_tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "plastic_tui"
version = "0.3.3"
authors = ["Amjad Alsharafi <[email protected]>"]
edition = "2021"
description = "An accurate NES emulator. Front-end terminal interface (TUI) for plastic-core"
description = "A NES emulator with terminal interface (TUI)"
readme = "../README.md"
repository = "https://github.com/Amjad50/plastic"
license = "MIT"
Expand Down
21 changes: 20 additions & 1 deletion plastic_ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "plastic"
version = "0.3.1"
authors = ["Amjad Alsharafi <[email protected]>"]
edition = "2021"
description = "An accurate NES emulator. Front-end for plastic-core"
description = "A NES emulator with GUI and TUI"
readme = "../README.md"
repository = "https://github.com/Amjad50/plastic"
license = "MIT"
Expand All @@ -20,3 +20,22 @@ eframe = "0.29"
rfd = "0.15"
dynwave = "0.1"

[package.metadata.deb]
name = "plastic"
maintainer = "Plastic Maintainers <Amjad Alsharafi <[email protected]>, Hadi Chokr <[email protected]>>"
extended-description = "" # to block usage of README.md
license-file = ["LICENSE", "0"]
depends = ["libasound2-dev", "libudev-dev"]
copyright = "2020, Amjad Alsharafi <[email protected]>"
priority = "optional"
section = "games"
assets = [
["target/release/plastic", "usr/bin/", "755"],
["target/release/plastic_tui", "usr/bin/", "755"],
["../LICENSE", "usr/share/licenses/plastic/", "644"],
["../README.md", "usr/share/doc/plastic/", "644"],
["../docs/man/plastic.1", "usr/share/man/man1/", "644"],
["../package/plastic.desktop", "usr/share/applications/", "644"],
["../images/icon.png", "usr/share/icons/plastic-icon.png", "644"],
]

0 comments on commit 318606b

Please sign in to comment.