Skip to content

Commit 5b2ec66

Browse files
committed
Updated bundled script handling + docs
1 parent 34562bb commit 5b2ec66

File tree

5 files changed

+18
-19
lines changed

5 files changed

+18
-19
lines changed

Application/Resources/Platypus-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@
445445
<key>CFBundleSignature</key>
446446
<string>????</string>
447447
<key>CFBundleVersion</key>
448-
<string>1322</string>
448+
<string>1323</string>
449449
<key>LSApplicationCategoryType</key>
450450
<string>public.app-category.developer-tools</string>
451451
<key>LSMinimumSystemVersion</key>

Application/Resources/UninstallPlatypus.sh

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,17 @@
33
# UninstallPlatypus.sh
44
# Platypus
55

6-
cd "$1"
7-
8-
if [ -e "%%APP_SUPPORT_FOLDER%%" ]
9-
then
6+
if [ -e "%%PROGRAM_APP_SUPPORT_PATH%%" ]; then
107
echo "Deleting application support folder..."
11-
mv "%%APP_SUPPORT_FOLDER%%" "~/.Trash/%%PROGRAM_NAME%%ApplicationSupport-TRASHED-$RANDOM"
8+
mv "%%PROGRAM_APP_SUPPORT_PATH%%" ~/.Trash/%%PROGRAM_NAME%%ApplicationSupport-TRASHED-$RANDOM
129
fi
1310

14-
if [ -e "~/Library/Preferences/%%PROGRAM_BUNDLE_IDENTIFIER%%.plist" ]
15-
then
11+
if [ -e "~/Library/Preferences/%%PROGRAM_BUNDLE_IDENTIFIER%%.plist" ]; then
1612
echo "Deleting %%PROGRAM_NAME%% preferences..."
17-
mv "~/Library/Preferences/%%PROGRAM_BUNDLE_IDENTIFIER%%.plist" "~/.Trash/%%PROGRAM_BUNDLE_IDENTIFIER%%-TRASHED-$RANDOM.plist"
13+
mv "~/Library/Preferences/%%PROGRAM_BUNDLE_IDENTIFIER%%.plist" ~/.Trash/%%PROGRAM_BUNDLE_IDENTIFIER%%-TRASHED-$RANDOM.plist
1814
fi
1915

20-
if [ -e "$1/../../../%%PROGRAM_NAME%%.app" ]
21-
then
16+
if [ -e "%%APP_BUNDLE_PATH%%" ]; then
2217
echo "Moving %%PROGRAM_NAME%%.app to Trash"
23-
mv "$1/../../../%%PROGRAM_NAME%%.app" "~/.Trash/%%PROGRAM_NAME%%-TRASHED-$RANDOM.app"
18+
mv "%%APP_BUNDLE_PATH%%" ~/.Trash/%%PROGRAM_NAME%%-TRASHED-$RANDOM.app
2419
fi

Application/SettingsController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ - (NSDictionary *)commandEnvironmentDictionary {
399399
@"PROGRAM_MIN_SYS_VERSION": PROGRAM_MIN_SYS_VERSION,
400400
@"PROGRAM_BUNDLE_IDENTIFIER": PROGRAM_BUNDLE_IDENTIFIER,
401401
@"PROGRAM_AUTHOR": PROGRAM_AUTHOR,
402+
@"PROGRAM_APP_SUPPORT_PATH": PROGRAM_APP_SUPPORT_PATH,
402403
@"CMDLINE_PROGNAME_BUNDLE": CMDLINE_PROGNAME_BUNDLE,
403404
@"CMDLINE_PROGNAME": CMDLINE_PROGNAME,
404405
@"CMDLINE_SCRIPTEXEC_BIN_NAME": CMDLINE_SCRIPTEXEC_BIN_NAME,
@@ -412,6 +413,7 @@ - (NSDictionary *)commandEnvironmentDictionary {
412413
@"CMDLINE_MANDIR_PATH": CMDLINE_MANDIR_PATH,
413414
@"CMDLINE_MANPAGE_PATH": CMDLINE_MANPAGE_PATH,
414415
@"CMDLINE_NIB_PATH": CMDLINE_NIB_PATH,
416+
@"APP_BUNDLE_PATH": [[NSBundle mainBundle] bundlePath],
415417
@"CMDLINE_SCRIPT_EXEC_PATH": CMDLINE_SCRIPT_EXEC_PATH};
416418
}
417419

CHANGES.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# Platypus Version History
22

3-
### For 5.5.0 - 17/11/2025
3+
### For 5.5.0 - 02/12/2025
44

55
* Platypus.app and the platypus command line tool are now notarized by Apple
66
* Now requires macOS 11 "Big Sur" or later
7-
* Fixed bug where the argument settings window would lock up the interface
7+
* Fixed bug where the Argument settings dialog could lock up the interface
88
* Better support for Dark Mode
99
* Preferences now named Settings according to new macOS convention
10-
* Modernized codebase
11-
* Improved tests
10+
* Added `--executable-path` and `--nib-path` flags to command line tool to allow users to inject custom binaries or nib files
11+
* Improved install script for command line tool to ease installation in CI environments
12+
* Extensive modernization of codebase
13+
* Much-improved tests for command line tool
1214

1315
### For 5.4.1 - 22/10/2022
1416

ScriptExec/Resources/MainMenu.xib

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="24412" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
6-
<plugIn identifier="com.apple.WebKitIBPlugin" version="22155"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24412"/>
6+
<plugIn identifier="com.apple.WebKitIBPlugin" version="24412"/>
77
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
88
</dependencies>
99
<objects>

0 commit comments

Comments
 (0)