Reorganization of data resources
This commit is contained in:
parent
83a604dfb7
commit
3f58e554ba
|
@ -1,3 +1,3 @@
|
||||||
winlib/* linguist-vendored
|
winlib/* linguist-vendored
|
||||||
src/lib/* linguist-vendored
|
src/lib/* linguist-vendored
|
||||||
icon.inl linguist-vendored
|
resources/icons/icon.inl linguist-vendored
|
||||||
|
|
|
@ -100,8 +100,8 @@ lite_build_package_macos () {
|
||||||
for module_name in plugins colors; do
|
for module_name in plugins colors; do
|
||||||
cp -r "$build/third/data/$module_name" "$datadir"
|
cp -r "$build/third/data/$module_name" "$datadir"
|
||||||
done
|
done
|
||||||
cp dev-utils/icon.icns "$appdir/Contents/Resources/icon.icns"
|
cp resources/icons/icon.icns "$appdir/Contents/Resources/icon.icns"
|
||||||
cp dev-utils/Info.plist "$appdir/Contents/Info.plist"
|
cp resources/macos/Info.plist "$appdir/Contents/Info.plist"
|
||||||
cp "$build/src/lite" "$bindir/lite-xl"
|
cp "$build/src/lite" "$bindir/lite-xl"
|
||||||
strip "$bindir/lite-xl"
|
strip "$bindir/lite-xl"
|
||||||
pushd ".package-build"
|
pushd ".package-build"
|
||||||
|
@ -142,8 +142,8 @@ lite_build_package_linux () {
|
||||||
strip "$bindir/lite"
|
strip "$bindir/lite"
|
||||||
if [ -z "$portable" ]; then
|
if [ -z "$portable" ]; then
|
||||||
mkdir -p "$pdir/share/applications" "$pdir/share/icons/hicolor/scalable/apps"
|
mkdir -p "$pdir/share/applications" "$pdir/share/icons/hicolor/scalable/apps"
|
||||||
cp "dev-utils/lite-xl.desktop" "$pdir/share/applications"
|
cp "resources/linux/lite-xl.desktop" "$pdir/share/applications"
|
||||||
cp "dev-utils/lite.svg" "$pdir/share/icons/hicolor/scalable/apps/lite-xl.svg"
|
cp "resources/icons/lite.svg" "$pdir/share/icons/hicolor/scalable/apps/lite-xl.svg"
|
||||||
fi
|
fi
|
||||||
pushd ".package-build"
|
pushd ".package-build"
|
||||||
local package_name="lite-xl-$os-$arch$portable.tar.gz"
|
local package_name="lite-xl-$os-$arch$portable.tar.gz"
|
||||||
|
|
|
@ -55,7 +55,7 @@ endif
|
||||||
lite_rc = []
|
lite_rc = []
|
||||||
if host_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
windows = import('windows')
|
windows = import('windows')
|
||||||
lite_rc += windows.compile_resources('res.rc')
|
lite_rc += windows.compile_resources('resources/icons/icon.rc')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# On macos we need to use the SDL renderer to support retina displays
|
# On macos we need to use the SDL renderer to support retina displays
|
||||||
|
|
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -79,7 +79,7 @@ static void get_exe_filename(char *buf, int sz) {
|
||||||
|
|
||||||
static void init_window_icon(void) {
|
static void init_window_icon(void) {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include "../icon.inl"
|
#include "../resources/icons/icon.inl"
|
||||||
(void) icon_rgba_len; /* unused */
|
(void) icon_rgba_len; /* unused */
|
||||||
SDL_Surface *surf = SDL_CreateRGBSurfaceFrom(
|
SDL_Surface *surf = SDL_CreateRGBSurfaceFrom(
|
||||||
icon_rgba, 64, 64,
|
icon_rgba, 64, 64,
|
||||||
|
|
Loading…
Reference in New Issue