diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 14:02:32 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 14:02:32 +0100 |
| commit | e039ec4d059d49c6fafecbc9aec7536498baa8ec (patch) | |
| tree | 675589a217e6bda2a4fab268b5cff3cc1dca63d0 | |
| parent | 7cc519c9d2f5b68aae04d368077f17c605009b43 (diff) | |
osx app bundle
| -rw-r--r-- | build_osx.sh | 10 | ||||
| -rw-r--r-- | misc/text-search.app/Contents/Info.plist | 22 | ||||
| -rw-r--r-- | misc/text-search.app/Contents/Library/libGL.1.dylib | bin | 0 -> 422808 bytes | |||
| -rw-r--r-- | misc/text-search.app/Contents/Library/libglfw.3.dylib | bin | 0 -> 235872 bytes | |||
| -rw-r--r-- | misc/text-search.app/Contents/Resources/text-search.icns | bin | 0 -> 21994 bytes |
5 files changed, 32 insertions, 0 deletions
diff --git a/build_osx.sh b/build_osx.sh index 1bce8d6..bd30b10 100644 --- a/build_osx.sh +++ b/build_osx.sh @@ -1,3 +1,5 @@ +#!/bin/sh + shopt -s extglob OUT_DIR="bin/debug" @@ -14,6 +16,14 @@ mkdir -p $OUT_DIR g++ -m64 -std=c++17 $FLAGS -DUNICODE -o $OUT_DIR/text-search imgui/imgui*.cpp imgui/backends/imgui_impl_glfw.cpp src/widgets/*.cpp src/*.cpp imfiledialog/*.cpp src/unix/*.cpp -Iimgui -Iimgui/backends -Isrc -Isrc/unix -pthread -ldl -lglfw -lGL +if [[ $* == *-release* ]]; then + cp $OUT_DIR/text-search misc/text-search.app/Contents/MacOS/text-search + install_name_tool -change /usr/local/opt/glfw/lib/libglfw.3.dylib "@executable_path/../Library/libglfw.3.dylib" misc/text-search.app/Contents/MacOS/text-search + install_name_tool -change /usr/local/opt/mesa/lib/libGL.1.dylib "@executable_path/../Library/libGL.1.dylib" misc/text-search.app/Contents/MacOS/text-search + cp -R misc/text-search.app bin/release/text-search.app + rm misc/text-search.app/Contents/MacOS/text-search +fi + if [[ $* == *-r* ]]; then ./$OUT_DIR/text-search fi
\ No newline at end of file diff --git a/misc/text-search.app/Contents/Info.plist b/misc/text-search.app/Contents/Info.plist new file mode 100644 index 0000000..8078337 --- /dev/null +++ b/misc/text-search.app/Contents/Info.plist @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDisplayName</key> + <string>Text-Search</string> + <key>CFBundleExecutable</key> + <string>text-search</string> + <key>CFBundleIdentifier</key> + <string>com.aldrikramaekers.text-search</string> + <key>CFBundleName</key> + <string>Text-Search</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleSignature</key> + <string>FOOZ</string> + <key>CFBundleVersion</key> + <string>2.1.0</string> + <key>CFBundleIconFile</key> + <string>text-search.icns</string> +</dict> +</plist>
\ No newline at end of file diff --git a/misc/text-search.app/Contents/Library/libGL.1.dylib b/misc/text-search.app/Contents/Library/libGL.1.dylib Binary files differnew file mode 100644 index 0000000..30e2966 --- /dev/null +++ b/misc/text-search.app/Contents/Library/libGL.1.dylib diff --git a/misc/text-search.app/Contents/Library/libglfw.3.dylib b/misc/text-search.app/Contents/Library/libglfw.3.dylib Binary files differnew file mode 100644 index 0000000..0d9fc0e --- /dev/null +++ b/misc/text-search.app/Contents/Library/libglfw.3.dylib diff --git a/misc/text-search.app/Contents/Resources/text-search.icns b/misc/text-search.app/Contents/Resources/text-search.icns Binary files differnew file mode 100644 index 0000000..fe24327 --- /dev/null +++ b/misc/text-search.app/Contents/Resources/text-search.icns |
