build: modify run logic for macOS dev builds so notifications work

This commit is contained in:
Michael Bradley, Jr 2021-04-30 13:58:55 -05:00 committed by Iuri Matias
parent 33a77ab761
commit 89e42f960d
2 changed files with 37 additions and 7 deletions

28
Info.dev.plist Normal file
View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>Status Desktop DEV</string>
<key>CFBundleExecutable</key>
<string>nim_status_client</string>
<key>CFBundleIconFile</key>
<string>status-dev.icns</string>
<key>CFBundleIdentifier</key>
<string>im.Status.NimStatusClientDev</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>StatusDev</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>IFMajorVersion</key>
<integer>1</integer>
<key>IFMinorVersion</key>
<integer>0</integer>
<key>NSHighResolutionCapable</key>
<string>True</string>
</dict>
</plist>

View File

@ -33,7 +33,6 @@ BUILD_SYSTEM_DIR := vendor/nimbus-build-system
run-linux \
run-macos \
run-windows \
set-status-macos-dev-icon \
status-go \
update
@ -408,17 +407,20 @@ $(ICON_TOOL):
# Currently not in use: https://github.com/status-im/status-desktop/pull/1858
# STATUS_PORT ?= 30306
set-status-macos-dev-icon: $(ICON_TOOL)
npx fileicon set bin/nim_status_client status-dev.icns
run-linux:
echo -e "\e[92mRunning:\e[39m bin/nim_status_client"
LD_LIBRARY_PATH="$(QT5_LIBDIR)":"$(STATUSGO_LIBDIR)" \
./bin/nim_status_client
run-macos: set-status-macos-dev-icon
echo -e "\e[92mRunning:\e[39m bin/nim_status_client"
./bin/nim_status_client
run-macos: $(ICON_TOOL)
mkdir -p bin/StatusDev.app/Contents/{MacOS,Resources}
cp Info.dev.plist bin/StatusDev.app/Contents/Info.plist
cp status-dev.icns bin/StatusDev.app/Contents/Resources/
cd bin/StatusDev.app/Contents/MacOS && \
ln -fs ../../../nim_status_client ./
npx fileicon set bin/nim_status_client status-dev.icns
echo -e "\e[92mRunning:\e[39m bin/StatusDev.app/Contents/MacOS/nim_status_client"
./bin/StatusDev.app/Contents/MacOS/nim_status_client
run-windows: $(NIM_WINDOWS_PREBUILT_DLLS)
echo -e "\e[92mRunning:\e[39m bin/nim_status_client.exe"