fix normal build
This commit is contained in:
@@ -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: ..
|
||||
|
||||
@@ -5,7 +5,15 @@ set_project("org.zulianc.jminos")
|
||||
|
||||
includes("@builtin/xpack")
|
||||
|
||||
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user