Skip to content

Commit

Permalink
Use xmake pack to produce the RPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Nov 24, 2024
1 parent 91cf776 commit 6f22f5b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,19 @@ target ("goldfish") do
end

includes("@builtin/xpack")

xpack ("goldfish")
set_formats("deb")
set_formats("deb", "rpm", "srpm")
set_author("Da Shen <[email protected]>")
set_license("Apache-2.0")
set_title("Goldfish Scheme")
set_description("A Python-like Scheme Interpreter")
set_homepage("https://gitee.com/LiiiLabs/goldfish")
add_targets ("goldfish")

add_sourcefiles("(xmake/**)")
add_sourcefiles("xmake.lua")
add_sourcefiles("(src/**)")
add_sourcefiles("(goldfish/**)")
on_load(function (package)
if package:with_source() then
package:set("basename", "goldfish-$(plat)-src-v$(version)")
Expand Down

0 comments on commit 6f22f5b

Please sign in to comment.