nfpm.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Feel free to remove those if you don't want/need to use them.
  2. # Make sure to check the documentation at https://nfpm.goreleaser.com
  3. #
  4. # The lines below are called `modelines`. See `:help modeline`
  5. name: "腾图工具箱"
  6. arch: ${GOARCH}
  7. platform: "linux"
  8. version: "0.0.1"
  9. section: "default"
  10. priority: "extra"
  11. maintainer: ${GIT_COMMITTER_NAME} <${GIT_COMMITTER_EMAIL}>
  12. description: "A program that does X"
  13. vendor: "My Company"
  14. homepage: "https://wails.io"
  15. license: "MIT"
  16. release: "1"
  17. contents:
  18. - src: "./bin/腾图工具箱"
  19. dst: "/usr/local/bin/腾图工具箱"
  20. - src: "./build/appicon.png"
  21. dst: "/usr/share/icons/hicolor/128x128/apps/腾图工具箱.png"
  22. - src: "./build/linux/腾图工具箱.desktop"
  23. dst: "/usr/share/applications/腾图工具箱.desktop"
  24. # Default dependencies for the GTK4 + WebKitGTK 6.0 stack (Ubuntu 24.04+ / Debian 13+)
  25. depends:
  26. - libgtk-4-1
  27. - libwebkitgtk-6.0-4
  28. # Distribution-specific overrides for different package formats
  29. overrides:
  30. # RPM packages for Fedora / RHEL / AlmaLinux / Rocky Linux
  31. rpm:
  32. depends:
  33. - gtk4
  34. - webkitgtk6.0
  35. # Arch Linux packages
  36. archlinux:
  37. depends:
  38. - gtk4
  39. - webkitgtk-6.0
  40. # scripts section to ensure desktop database is updated after install
  41. scripts:
  42. postinstall: "./build/linux/nfpm/scripts/postinstall.sh"
  43. # You can also add preremove, postremove if needed
  44. # preremove: "./build/linux/nfpm/scripts/preremove.sh"
  45. # postremove: "./build/linux/nfpm/scripts/postremove.sh"
  46. # If you build your app with -tags gtk3 (legacy WebKit2GTK 4.1 stack — supported through v3.0.x, removed in v3.1),
  47. # replace the depends/overrides above with these:
  48. #
  49. # depends:
  50. # - libgtk-3-0
  51. # - libwebkit2gtk-4.1-0
  52. # overrides:
  53. # rpm:
  54. # depends:
  55. # - gtk3
  56. # - webkit2gtk4.1
  57. # archlinux:
  58. # depends:
  59. # - gtk3
  60. # - webkit2gtk-4.1
  61. #
  62. # replaces:
  63. # - foobar
  64. # provides:
  65. # - bar
  66. # recommends:
  67. # - whatever
  68. # suggests:
  69. # - something-else
  70. # conflicts:
  71. # - not-foo
  72. # - not-bar
  73. # changelog: "changelog.yaml"