Skip to content

Commit 6718af2

Browse files
authored
Merge pull request #26 from wertyilk/main
macos app bundler
2 parents 33326e5 + 7b06745 commit 6718af2

5 files changed

Lines changed: 29 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ macos: bin/TLEscope-macos
6868
cp logo*.png $(DIST_MACOS)/ 2>/dev/null || true
6969
@echo "macOS build bundled in $(DIST_MACOS)/"
7070
@echo "Run it with: cd $(DIST_MACOS)/ && ./TLEscope"
71+
@echo "To make a MacOS bundle: ./macos_bundle.sh"
7172

7273
windows: bin/TLEscope.exe
7374
@mkdir -p $(DIST_WIN)
@@ -163,4 +164,4 @@ uninstall:
163164
rm -f $(DESTDIR)$(APP_DIR)/TLEscope.desktop
164165
rm -f $(DESTDIR)$(LINK_DIR)/TLEscope
165166
rm -rf $(DESTDIR)$(INSTALL_DIR)
166-
@echo "Uninstall complete."
167+
@echo "Uninstall complete."

bundle/Contents/Info.plist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleExecutable</key>
6+
<string>TLEscope</string>
7+
<key>CFBundleIconFile</key>
8+
<string>AppIcon</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>com.aweeri.tlescope</string>
11+
<key>CFBundleName</key>
12+
<string>TLEscope</string>
13+
<key>CFBundlePackageType</key>
14+
<string>APPL</string>
15+
<key>LSMinimumSystemVersion</key>
16+
<string>11.0</string>
17+
</dict>
18+
</plist>

bundle/Contents/MacOS/TLEscope

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# this workaround reeks probably please change it later
3+
cd "$(dirname "$0")"/../Resources
4+
../MacOS/TLEscope.bin
355 KB
Binary file not shown.

macos_bundle.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
cp -r bundle dist/TLEscope.app
3+
cp -r dist/TLEscope-macOS-Portable/* dist/TLEscope.app/Contents/Resources
4+
mv dist/TLEscope.app/Contents/Resources/TLEscope dist/TLEscope.app/Contents/MacOS/TLEscope.bin
5+
chmod +x dist/TLEscope.app/Contents/MacOS/TLEscope # jus to be safe

0 commit comments

Comments
 (0)