mirror of https://github.com/lite-xl/lite-xl.git
Browse Source
Install plugins with lpm inside meson (#1951)
Install plugins with lpm inside meson (#1951)
* meson: install plugins with lpm * meson: add cachedir as output * build.sh: fix bash syntax error * build.sh: only copy datadir when PGO is enabled * build.sh: properly install files with meson install * build.sh: install macOS bundle files with .app suffix * ci: copy bundle and portable files correctly * package-dmg: remove extraneous steps * ci: fix wrong bundle path * build.sh: force reconfigure bundle=false if bundle is not explicitly given * build.sh: move wrong bundle=true assignment to the right place * ci: remove -a flag from cp command * ci: use xargs and find -print0 to omit spaces in find output * ci: specify correct path to Info.plist * ci: correctly run dmgbuild * dmgbuild: get application path from command line * ci: organize dmgbuild arguments * ci: properly escape arguments * ci: finally correctly specify yaml string * ci: don't copy Info.plist again * build.sh: don't install any plugins if -A is not specified * build.sh: use the latest release from githubpull/1965/head

committed by
GitHub

No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 77 additions and 46 deletions
-
24.github/workflows/build.yml
-
20data/meson.build
-
7meson.build
-
1meson_options.txt
-
2resources/macos/lite-xl-dmg.py
-
51scripts/build.sh
-
18scripts/package-dmg.sh
@ -0,0 +1,20 @@ |
|||
if get_option('bundle_plugins').length() > 0 |
|||
lpm_exe = find_program('lpm') |
|||
plugin_bundle = custom_target( |
|||
'lpm_plugins', |
|||
input: 'meson.build', |
|||
output: [lpm_userdir, 'lpm_cache'], |
|||
command: [ |
|||
lpm_exe, |
|||
'--datadir', meson.project_source_root() / 'data', |
|||
'--userdir', '@OUTPUT0@', |
|||
'--cachedir', '@OUTPUT1@', |
|||
'--assume-yes', |
|||
'install', |
|||
get_option('bundle_plugins'), |
|||
], |
|||
install: true, |
|||
install_dir: [lpm_install_dir, false], |
|||
build_by_default: true, |
|||
) |
|||
endif |
@ -1,18 +0,0 @@ |
|||
#!/usr/bin/env bash |
|||
set -ex |
|||
|
|||
if [ ! -e "src/api/api.h" ]; then |
|||
echo "Please run this script from the root directory of Lite XL." |
|||
exit 1 |
|||
fi |
|||
|
|||
mkdir -p "Lite XL.app/Contents/MacOS" "Lite XL.app/Contents/Resources" |
|||
cp -r $1/lite-xl/lite-xl "Lite XL.app/Contents/MacOS" |
|||
cp -r $1/lite-xl/data/* "Lite XL.app/Contents/Resources" |
|||
cp resources/icons/icon.icns "Lite XL.app/Contents/Resources" |
|||
cp -r $1/Info.plist "Lite XL.app/Contents/Resources" |
|||
|
|||
dmgbuild -s resources/macos/lite-xl-dmg.py "Lite XL" "$2.dmg" |
|||
|
|||
rm -rf "Lite XL.app" |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue