xpack install #7

Open
Persson-dev wants to merge 12 commits from xpack into main
2 changed files with 14 additions and 6 deletions
Showing only changes of commit 6dbcc717f7 - Show all commits

View File

@@ -28,13 +28,13 @@ modules:
build-args:
- --share=network
build-commands:
- xmake f --policies=package.install_locally -m release -y
- xmake f --policies=package.install_locally --external_build=y -m release -y
- xmake
- xmake install -o output
- install -D output/bin/* ${FLATPAK_DEST}/bin
- cp -r output/data ${FLATPAK_DEST}/share
- install -D flatpak/FlatpakLaunch.sh ${FLATPAK_DEST}/bin
- install -D flatpak/org.zulianc.jminos.desktop ${FLATPAK_DEST}/share/applications
- install -D output/bin/* /app/bin
- cp -r output/data /app/share
- install -D flatpak/FlatpakLaunch.sh /app/bin
- install -D -t /app/share/applications flatpak/org.zulianc.jminos.desktop
sources:
- type: dir
path: ..

View File

@@ -5,7 +5,15 @@ set_project("org.zulianc.jminos")
includes("@builtin/xpack")
add_requires("sfml 3.0.0", "zlib", {system = false})
option("external_build")
set_default(false)
option_end()
if has_config("external_build") then
add_requires("sfml 3.0.0", "zlib", {system = false})
else
add_requires("sfml 3.0.0", "zlib")
end
set_languages("c++20")