mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
build: apply optimization flags to existing build trees and escape Exec path
This commit is contained in:
1 parent
0e2a2dde61
commit
67f800d47a
2 files changed
+4
-3
No files matched your search
+2
-2
@@ -14,7 +14,7 @@ python3 scripts/prepare.py
|
||||
# is required by objc4's debug-ness macro check.
|
||||
cmake -S build/darling-src -B build/darling-src/build -G 'Unix Makefiles' \
|
||||
-DCMAKE_BUILD_TYPE= -DTARGET_i386=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_METAL=ON \
|
||||
-DCMAKE_C_FLAGS_INIT="-O3 -march=native -mtune=native -pipe" \
|
||||
-DCMAKE_CXX_FLAGS_INIT="-O3 -march=native -mtune=native -pipe"
|
||||
-DCMAKE_C_FLAGS="-O3 -march=native -mtune=native -pipe" \
|
||||
-DCMAKE_CXX_FLAGS="-O3 -march=native -mtune=native -pipe"
|
||||
cmake --build build/darling-src/build --parallel "${JOBS:-$(nproc)}"
|
||||
echo 'Build complete. Install the base runtime with: sudo cmake --install build/darling-src/build'
|
||||
@@ -141,13 +141,14 @@ def main():
|
||||
|
||||
# 3. Create .desktop file
|
||||
run_script = PROJECT_ROOT / "scripts/run.sh"
|
||||
exec_path = str(run_script).replace("%", "%%")
|
||||
desktop_content = f"""[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=League of Legends
|
||||
GenericName=MOBA Game
|
||||
Comment=Play League of Legends on Linux with darling-lol
|
||||
Exec="{run_script}"
|
||||
Exec="{exec_path}"
|
||||
Path={PROJECT_ROOT}
|
||||
Icon=league-of-legends
|
||||
Terminal=false
|
||||
|
||||
Reference in new issue
Block a user