Added Release Workflow and Fixed some build script issues (#1013)
* ci linux: make builds properly static * test workflow_dispatch * install wayland-protocols * append missing portable * make debug builds by default * auto enable some video subsystems for proper wayland support * added release workflow * make line shorter in innosetup bash script * disable some video subsystems on darwin and windows * fix default build dir on msys * print output of ntldd * properly set msys arch * disable opengl on windows * copy mingw dependencies on package * innosetup script copy from generated package dir * changed license to reflect team work * adjusted the ci windows install name * add all language plugins to addons * disabled generation of source tarballs * removed language_cpp from plugins repo * enabled lua utf8 patch for windows build * added open_ext to addons * moved away from deprecated virtual environments * make minimal build and with addons * simplified CI build.yml
This commit is contained in:
+73
-1
@@ -2,6 +2,64 @@
|
||||
|
||||
set -e
|
||||
|
||||
addons_download() {
|
||||
local build_dir="$1"
|
||||
|
||||
if [[ -d "${build_dir}/third/data/colors" ]]; then
|
||||
echo "Warning: found previous addons installation, skipping."
|
||||
echo " addons path: ${build_dir}/third/data/colors"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Download third party color themes
|
||||
curl --insecure \
|
||||
-L "https://github.com/lite-xl/lite-xl-colors/archive/master.zip" \
|
||||
-o "${build_dir}/lite-xl-colors.zip"
|
||||
|
||||
mkdir -p "${build_dir}/third/data/colors"
|
||||
unzip "${build_dir}/lite-xl-colors.zip" -d "${build_dir}"
|
||||
mv "${build_dir}/lite-xl-colors-master/colors" "${build_dir}/third/data"
|
||||
rm -rf "${build_dir}/lite-xl-colors-master"
|
||||
|
||||
# Download widgets library
|
||||
curl --insecure \
|
||||
-L "https://github.com/lite-xl/lite-xl-widgets/archive/master.zip" \
|
||||
-o "${build_dir}/lite-xl-widgets.zip"
|
||||
|
||||
unzip "${build_dir}/lite-xl-widgets.zip" -d "${build_dir}"
|
||||
mv "${build_dir}/lite-xl-widgets-master" "${build_dir}/third/data/widget"
|
||||
|
||||
# Downlaod thirdparty plugins
|
||||
curl --insecure \
|
||||
-L "https://github.com/lite-xl/lite-xl-plugins/archive/2.1.zip" \
|
||||
-o "${build_dir}/lite-xl-plugins.zip"
|
||||
|
||||
unzip "${build_dir}/lite-xl-plugins.zip" -d "${build_dir}"
|
||||
mv "${build_dir}/lite-xl-plugins-2.1/plugins" "${build_dir}/third/data"
|
||||
rm -rf "${build_dir}/lite-xl-plugins-2.1"
|
||||
}
|
||||
|
||||
# Addons installation: some distributions forbid external downloads
|
||||
# so make it as optional module.
|
||||
addons_install() {
|
||||
local build_dir="$1"
|
||||
local data_dir="$2"
|
||||
|
||||
for module_name in colors widget; do
|
||||
cp -r "${build_dir}/third/data/$module_name" "${data_dir}"
|
||||
done
|
||||
|
||||
mkdir -p "${data_dir}/plugins"
|
||||
|
||||
for plugin_name in settings open_ext; do
|
||||
cp -r "${build_dir}/third/data/plugins/${plugin_name}.lua" \
|
||||
"${data_dir}/plugins/"
|
||||
done
|
||||
|
||||
cp "${build_dir}/third/data/plugins/"language_* \
|
||||
"${data_dir}/plugins/"
|
||||
}
|
||||
|
||||
get_platform_name() {
|
||||
if [[ "$OSTYPE" == "msys" ]]; then
|
||||
echo "windows"
|
||||
@@ -14,9 +72,23 @@ get_platform_name() {
|
||||
fi
|
||||
}
|
||||
|
||||
get_platform_arch() {
|
||||
platform=$(get_platform_name)
|
||||
arch=$(uname -m)
|
||||
if [[ $MSYSTEM != "" ]]; then
|
||||
if [[ $MSYSTEM == "MINGW64" ]]; then
|
||||
arch=x86_64
|
||||
else
|
||||
arch=i686
|
||||
fi
|
||||
fi
|
||||
echo "$arch"
|
||||
}
|
||||
|
||||
get_default_build_dir() {
|
||||
platform=$(get_platform_name)
|
||||
echo "build-$platform-$(uname -m)"
|
||||
arch=$(get_platform_arch)
|
||||
echo "build-$platform-$arch"
|
||||
}
|
||||
|
||||
if [[ $(get_platform_name) == "UNSUPPORTED-OS" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user