Skip to content

Commit

Permalink
Add desktop entry for deb package.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Apr 26, 2023
1 parent 784c855 commit a81947c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
Binary file modified logo.ico
Binary file not shown.
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions tunet-gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ authors.workspace = true
license.workspace = true
repository.workspace = true

[package.metadata.deb]
assets = [
[
"target/release/tunet-gui",
"usr/bin/",
"755",
],
[
"../logo.png",
"usr/share/icons/hicolor/apps/tunet.png",
"644",
],
[
"tunet.desktop",
"usr/share/applications/tunet.desktop",
"755",
],
]

[dependencies]
color-theme = { workspace = true }
tunet-helper = { workspace = true }
Expand Down
8 changes: 8 additions & 0 deletions tunet-gui/tunet.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=清华校园网
GenericName=清华大学校园网客户端
Exec=tunet-gui
Icon=tunet
NoDisplay=false
Terminal=false

0 comments on commit a81947c

Please sign in to comment.