summaryrefslogtreecommitdiff
path: root/Darwin
diff options
context:
space:
mode:
Diffstat (limited to 'Darwin')
-rwxr-xr-xDarwin/Info.plist.in88
-rwxr-xr-xDarwin/Mac-wsjtx-startup.sh30
-rwxr-xr-xDarwin/ReadMe.txt226
-rwxr-xr-xDarwin/com.wsjtx.sysctl.plist36
-rwxr-xr-xDarwin/developer read me.txt128
-rwxr-xr-xDarwin/postflight.sh.in6
-rwxr-xr-xDarwin/postupgrade.sh.in4
7 files changed, 259 insertions, 259 deletions
diff --git a/Darwin/Info.plist.in b/Darwin/Info.plist.in
index d2e943fe..73de6e08 100755
--- a/Darwin/Info.plist.in
+++ b/Darwin/Info.plist.in
@@ -1,44 +1,44 @@
-<?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>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
- <key>CFBundleGetInfoString</key>
- <string>${MACOSX_BUNDLE_INFO_STRING}</string>
- <key>CFBundleIconFile</key>
- <string>${MACOSX_BUNDLE_ICON_FILE}</string>
- <key>CFBundleIdentifier</key>
- <string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleLongVersionString</key>
- <string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
- <key>CFBundleName</key>
- <string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
- <key>CSResourcesFileMapped</key>
- <true/>
- <key>LSRequiresCarbon</key>
- <true/>
- <key>NSHumanReadableCopyright</key>
- <string>${MACOSX_BUNDLE_COPYRIGHT}</string>
- <key>NSPrincipalClass</key>
- <string>NSApplication</string>
- <key>NSHighResolutionCapable</key>
- <string>True</string>
- <key>NSRequiresAquaSystemAppearance</key>
- <true/>
- <key>NSMicrophoneUsageDescription</key>
- <string>This app requires microphone access to receive signals.</string>
-</dict>
-</plist>
+<?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>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
+ <key>CFBundleGetInfoString</key>
+ <string>${MACOSX_BUNDLE_INFO_STRING}</string>
+ <key>CFBundleIconFile</key>
+ <string>${MACOSX_BUNDLE_ICON_FILE}</string>
+ <key>CFBundleIdentifier</key>
+ <string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleLongVersionString</key>
+ <string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
+ <key>CFBundleName</key>
+ <string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
+ <key>CSResourcesFileMapped</key>
+ <true/>
+ <key>LSRequiresCarbon</key>
+ <true/>
+ <key>NSHumanReadableCopyright</key>
+ <string>${MACOSX_BUNDLE_COPYRIGHT}</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+ <key>NSHighResolutionCapable</key>
+ <string>True</string>
+ <key>NSRequiresAquaSystemAppearance</key>
+ <true/>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>This app requires microphone access to receive signals.</string>
+</dict>
+</plist>
diff --git a/Darwin/Mac-wsjtx-startup.sh b/Darwin/Mac-wsjtx-startup.sh
index b3939102..f6426f75 100755
--- a/Darwin/Mac-wsjtx-startup.sh
+++ b/Darwin/Mac-wsjtx-startup.sh
@@ -1,16 +1,16 @@
-#!/bin/sh
-WSJTX_BUNDLE="`echo "$0" | sed -e 's/\/Contents\/MacOS\/.*//'`"
-WSJTX_RESOURCES="$WSJTX_BUNDLE/Contents/Resources"
-WSJTX_TEMP="/tmp/wsjtx/$UID"
-
-echo "running $0"
-echo "WSJTX_BUNDLE: $WSJTX_BUNDLE"
-
-# Setup temporary runtime files
-rm -rf "$WSJTX_TEMP"
-
-export "DYLD_LIBRARY_PATH=$WSJTX_RESOURCES/lib"
-export "PATH=$WSJTX_RESOURCES/bin:$PATH"
-
-#export
+#!/bin/sh
+WSJTX_BUNDLE="`echo "$0" | sed -e 's/\/Contents\/MacOS\/.*//'`"
+WSJTX_RESOURCES="$WSJTX_BUNDLE/Contents/Resources"
+WSJTX_TEMP="/tmp/wsjtx/$UID"
+
+echo "running $0"
+echo "WSJTX_BUNDLE: $WSJTX_BUNDLE"
+
+# Setup temporary runtime files
+rm -rf "$WSJTX_TEMP"
+
+export "DYLD_LIBRARY_PATH=$WSJTX_RESOURCES/lib"
+export "PATH=$WSJTX_RESOURCES/bin:$PATH"
+
+#export
exec "$WSJTX_RESOURCES/bin/wsjtx" \ No newline at end of file
diff --git a/Darwin/ReadMe.txt b/Darwin/ReadMe.txt
index 1a188c46..e6f52dd3 100755
--- a/Darwin/ReadMe.txt
+++ b/Darwin/ReadMe.txt
@@ -1,113 +1,113 @@
- Notes on WSJT-X Installation for Mac OS X
- -----------------------------------------
-
-If you have already downloaded a previous version of WSJT-X then I suggest
-you change the name in the Applications folder from WSJT-X to WSJT-X_previous
-before proceeding.
-
-I recommend that you follow the installation instructions especially if you
-are moving from v2.3 to v2.4 or later, of WSJT-X or you have upgraded macOS.
-
-Double-click on the wsjtx-...-Darwin.dmg file you have downloaded from K1JT's web-site.
-
-Now open a Terminal window by going to Applications->Utilities and clicking on Terminal.
-
-Along with this ReadMe file there is a file: com.wsjtx.sysctl.plist which must be copied to a
-system area by typing this line in the Terminal window and then pressing the Return key.
-
- sudo cp /Volumes/WSJT-X/com.wsjtx.sysctl.plist /Library/LaunchDaemons
-
-you will be asked for your normal password because authorisation is needed to copy this file.
-(Your password will not be echoed but press the Return key when completed.)
-Now re-boot your Mac. This is necessary to install the changes. After the
-reboot you should re-open the Terminal window as before and you can check that the
-change has been made by typing:
-
- sysctl -a | grep sysv.shm
-
-If shmmax is not shown as 52428800 then contact me since WSJT-X might fail to load with
-an error message: "Unable to create shared memory segment".
-
-You can now close the Terminal window. It will not be necessary to repeat this procedure
-again, even when you download an updated version of WSJT-X. It might be necessary if you
-upgrade macOS.
-
-Drag the WSJT-X app to your preferred location, such as Applications.
-
-You need to configure your sound card. Visit Applications > Utilities > Audio MIDI
-Setup and select your sound card and then set Format to be "48000Hz 2ch-16bit" for
-input and output.
-
-Now double-click on the WSJT-X app and two windows will appear. Select Preferences
-under the WSJT-X Menu and fill in various station details on the General panel.
-I recommend checking the 4 boxes under the Display heading and the first 4 boxes under
-the Behaviour heading.
-
-Depending on your macOS you might see a pop-up window suggesting that wsjtx wants to use the
-microphone. What this means is that audio input must be allowed. Agree.
-
-Next visit the Audio panel and select the Audio Codec you use to communicate between
-WSJT-X and your rig. There are so many audio interfaces available that it is not
-possible to give detailed advice on selection. If you have difficulties contact me.
-Note the location of the Save Directory. Decoded wave forms are located here.
-
-Look at the Reporting panel. If you check the "Prompt me" box, a logging panel will appear
-at the end of the QSO. Visit Section 11 of the User Guide for information about log files
-and how to access them.
-
-Finally, visit the Radio panel. WSJT-X is most effective when operated with CAT
-control. You will need to install the relevant Mac device driver for your rig,
-and then re-launch WSJT-X. Return to the Radio panel in Preferences and in
-the "Serial port" panel select your driver from the list that is presented. If you
-do not know where to get an appropriate driver, contact me.
-
-WSJT-X needs the Mac clock to be accurate. Visit System Preferences > Date & Time
-and make sure that Date and Time are set automatically. The drop-down menu will
-normally offer you several time servers to choose from.
-
-On the Help menu, have a look at the new Online User's Guide for operational hints
-and tips and possible solutions to any problem you might have.
-
-Please email me if you have problems.
-
---- John G4KLA (g4kla@rmnjmn.co.uk)
-
-Additional Notes:
-
-1. Information about com.wsjtx.sysctl.plist and multiple instances of WSJT-X
-
-WSJT-X makes use of a block of memory which is shared between different parts of
-the code. The normal allocation of shared memory on a Mac is insufficient and this
-has to be increased. The com.wsjtx.sysctl.plist file is used for this purpose. You can
-use a Mac editor to examine the file. (Do not use another editor - the file
-would probably be corrupted.)
-
-It is possible to run two instances of WSJT-X simultaneously. See "Section 16.2
-Frequently asked Questions" in the User Guide. If you wish to run more than two instances
-simultaneously, the shmall parameter in the com.wsjtx.sysctl.plist file needs to be modified as follows.
-
-The shmall parameter determines the amount of shared memory which is allocated in 4096 byte pages
-with 50MB (52428800) required for each instance. The shmall parameter is calculated as:
-(n * 52428800)/4096 where 'n' is the number of instances required to run simultaneously.
-Replace your new version of this file in /Library/LaunchDaemons and remember to reboot your
-Mac afterwards.
-
-Note that the shmmax parameter remains unchanged. This is the maximum amount of shared memory that
-any one instance is allowed to request from the total shared memory allocation and should not
-be changed.
-
-If two instances of WSJT-X are running, it is likely that you might need additional
-audio devices, from two rigs for example. Visit Audio MIDI Setup and create an Aggregate Device
-which will allow you to specify more than one interface. I recommend you consult Apple's guide
-on combining multiple audio interfaces which is at https://support.apple.com/en-us/HT202000.
-
-2. Preventing WSJT-X from being put into 'sleep' mode (App Nap).
-
-In normal circumstances an application which has not been directly accessed for a while can be
-subject to App Nap which means it is suspended until such time as its windows are accessed. If
-it is intended that WSJT-X should be submitting continued reports to, for example, PSK Reporter
-then reporting will be interrupted. App Nap can be disabled as follows, but first quit WSJT-X:
-
-Open a Terminal window and type: defaults write org.k1jt.wsjtx NSAppSleepDisable -bool YES
-If you type: defaults read org.k1jt.wsjtx then the response will be: NSAppSleepDisable = 1;
-Close the Terminal window and launch WSJT-X. (If you 'Hide' WSJT-X, this scheme will be suspended.)
+ Notes on WSJT-X Installation for Mac OS X
+ -----------------------------------------
+
+If you have already downloaded a previous version of WSJT-X then I suggest
+you change the name in the Applications folder from WSJT-X to WSJT-X_previous
+before proceeding.
+
+I recommend that you follow the installation instructions especially if you
+are moving from v2.3 to v2.4 or later, of WSJT-X or you have upgraded macOS.
+
+Double-click on the wsjtx-...-Darwin.dmg file you have downloaded from K1JT's web-site.
+
+Now open a Terminal window by going to Applications->Utilities and clicking on Terminal.
+
+Along with this ReadMe file there is a file: com.wsjtx.sysctl.plist which must be copied to a
+system area by typing this line in the Terminal window and then pressing the Return key.
+
+ sudo cp /Volumes/WSJT-X/com.wsjtx.sysctl.plist /Library/LaunchDaemons
+
+you will be asked for your normal password because authorisation is needed to copy this file.
+(Your password will not be echoed but press the Return key when completed.)
+Now re-boot your Mac. This is necessary to install the changes. After the
+reboot you should re-open the Terminal window as before and you can check that the
+change has been made by typing:
+
+ sysctl -a | grep sysv.shm
+
+If shmmax is not shown as 52428800 then contact me since WSJT-X might fail to load with
+an error message: "Unable to create shared memory segment".
+
+You can now close the Terminal window. It will not be necessary to repeat this procedure
+again, even when you download an updated version of WSJT-X. It might be necessary if you
+upgrade macOS.
+
+Drag the WSJT-X app to your preferred location, such as Applications.
+
+You need to configure your sound card. Visit Applications > Utilities > Audio MIDI
+Setup and select your sound card and then set Format to be "48000Hz 2ch-16bit" for
+input and output.
+
+Now double-click on the WSJT-X app and two windows will appear. Select Preferences
+under the WSJT-X Menu and fill in various station details on the General panel.
+I recommend checking the 4 boxes under the Display heading and the first 4 boxes under
+the Behaviour heading.
+
+Depending on your macOS you might see a pop-up window suggesting that wsjtx wants to use the
+microphone. What this means is that audio input must be allowed. Agree.
+
+Next visit the Audio panel and select the Audio Codec you use to communicate between
+WSJT-X and your rig. There are so many audio interfaces available that it is not
+possible to give detailed advice on selection. If you have difficulties contact me.
+Note the location of the Save Directory. Decoded wave forms are located here.
+
+Look at the Reporting panel. If you check the "Prompt me" box, a logging panel will appear
+at the end of the QSO. Visit Section 11 of the User Guide for information about log files
+and how to access them.
+
+Finally, visit the Radio panel. WSJT-X is most effective when operated with CAT
+control. You will need to install the relevant Mac device driver for your rig,
+and then re-launch WSJT-X. Return to the Radio panel in Preferences and in
+the "Serial port" panel select your driver from the list that is presented. If you
+do not know where to get an appropriate driver, contact me.
+
+WSJT-X needs the Mac clock to be accurate. Visit System Preferences > Date & Time
+and make sure that Date and Time are set automatically. The drop-down menu will
+normally offer you several time servers to choose from.
+
+On the Help menu, have a look at the new Online User's Guide for operational hints
+and tips and possible solutions to any problem you might have.
+
+Please email me if you have problems.
+
+--- John G4KLA (g4kla@rmnjmn.co.uk)
+
+Additional Notes:
+
+1. Information about com.wsjtx.sysctl.plist and multiple instances of WSJT-X
+
+WSJT-X makes use of a block of memory which is shared between different parts of
+the code. The normal allocation of shared memory on a Mac is insufficient and this
+has to be increased. The com.wsjtx.sysctl.plist file is used for this purpose. You can
+use a Mac editor to examine the file. (Do not use another editor - the file
+would probably be corrupted.)
+
+It is possible to run two instances of WSJT-X simultaneously. See "Section 16.2
+Frequently asked Questions" in the User Guide. If you wish to run more than two instances
+simultaneously, the shmall parameter in the com.wsjtx.sysctl.plist file needs to be modified as follows.
+
+The shmall parameter determines the amount of shared memory which is allocated in 4096 byte pages
+with 50MB (52428800) required for each instance. The shmall parameter is calculated as:
+(n * 52428800)/4096 where 'n' is the number of instances required to run simultaneously.
+Replace your new version of this file in /Library/LaunchDaemons and remember to reboot your
+Mac afterwards.
+
+Note that the shmmax parameter remains unchanged. This is the maximum amount of shared memory that
+any one instance is allowed to request from the total shared memory allocation and should not
+be changed.
+
+If two instances of WSJT-X are running, it is likely that you might need additional
+audio devices, from two rigs for example. Visit Audio MIDI Setup and create an Aggregate Device
+which will allow you to specify more than one interface. I recommend you consult Apple's guide
+on combining multiple audio interfaces which is at https://support.apple.com/en-us/HT202000.
+
+2. Preventing WSJT-X from being put into 'sleep' mode (App Nap).
+
+In normal circumstances an application which has not been directly accessed for a while can be
+subject to App Nap which means it is suspended until such time as its windows are accessed. If
+it is intended that WSJT-X should be submitting continued reports to, for example, PSK Reporter
+then reporting will be interrupted. App Nap can be disabled as follows, but first quit WSJT-X:
+
+Open a Terminal window and type: defaults write org.k1jt.wsjtx NSAppSleepDisable -bool YES
+If you type: defaults read org.k1jt.wsjtx then the response will be: NSAppSleepDisable = 1;
+Close the Terminal window and launch WSJT-X. (If you 'Hide' WSJT-X, this scheme will be suspended.)
diff --git a/Darwin/com.wsjtx.sysctl.plist b/Darwin/com.wsjtx.sysctl.plist
index 069e1976..48268add 100755
--- a/Darwin/com.wsjtx.sysctl.plist
+++ b/Darwin/com.wsjtx.sysctl.plist
@@ -1,18 +1,18 @@
-<?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>Label</key>
- <string>com.wsjtx.sysctl</string>
- <key>Program</key>
- <string>/usr/sbin/sysctl</string>
- <key>ProgramArguments</key>
- <array>
- <string>/usr/sbin/sysctl</string>
- <string>kern.sysv.shmmax=52428800</string>
- <string>kern.sysv.shmall=25600</string>
- </array>
- <key>RunAtLoad</key>
- <true/>
-</dict>
-</plist>
+<?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>Label</key>
+ <string>com.wsjtx.sysctl</string>
+ <key>Program</key>
+ <string>/usr/sbin/sysctl</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/usr/sbin/sysctl</string>
+ <string>kern.sysv.shmmax=52428800</string>
+ <string>kern.sysv.shmall=25600</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+</dict>
+</plist>
diff --git a/Darwin/developer read me.txt b/Darwin/developer read me.txt
index a7615f53..7438815b 100755
--- a/Darwin/developer read me.txt
+++ b/Darwin/developer read me.txt
@@ -1,64 +1,64 @@
-Changing the content of the DragNDrop DMG root folder.
-======================================================
-
-The files and links in this folder are populated by the WSJT-X CMake build script. There are install commands which are only run on Apple hosts, this is important because they will get installed at the install root on other platforms, which would be very bad on Linux for example since that is /usr normally!
-
-The symlink to /Applications, the background image (derived from ".../artwork/DragNDrop Background.svg") and, the custom .DS_Store file (".../Darwin/wsjtx_DMG.DS_Store") are all handled specifically by the CPack DragNDrop packager so you don't need to install those.
-
-
-
-Modifying the .DS_Store folder options for the DragNDrop DMG root folder.
-=========================================================================
-
-The DragNDrop installer is a generated a DMG file that has a custom .DS_Store file that defines the layout, background image and, folder view options of the DMG root folder.
-
-To modify this file, first you need to make a DragNDrop package then mount the DMG file, then modify the root .DS_Store file using Finder. Once you are happy with the results, you check into source control the modified .DS_Store file and then future package builds will use that file.
-
-The installer DMG is read only and shrunk to exactly the size of the contents, also the .DS_Store file is read only and the background image PNG file is hidden. You need to undo all of these things before changing the .DS_Store file. Don't forget to redo these things before checking in a new version of the custom .DS_Store file.
-
-The following recipe shows how to amend the content and layout of the DMG root folder:
-
-# convert the DMG to a R/W copy (substitute the DMG you have built)
-hdiutil convert wsjtx-1.7.0-rc1-Darwin.dmg -format UDRW -o rw.dmg
-
-# expand the R/W copy to make room for changes
-# first find the current number of sectors
-hdiutil resize -limits rw.dmg
-# the output looks like:
-#
-# min cur max
-#109696 109696 33037872
-#
-# you need to increase the sector count to something a bit bigger than current
-# e.g. in this case use 110000
-hdiutil resize -sectors 110000 rw.dmg
-
-# now you can mount the R/W DMG
-hdiutil attach rw.dmg
-
-# make the .DS_Store file writeable
-chmod 644 /Volumes/WSJT-X/.DS_Store
-
-# now you can change Finder view options, rearrange icons etc. Remember that you are
-# only changing the folder options, not the folder content as that is controlled by
-# the install steps in the project CMakeLists.txt if you are adding or removing a file
-# to the DMG root folder, you need to have changed the install steps before doing this
-# procedure so the content changes are reflected in the installer DMG you start with.
-
-# when you are happy with the layout etc. move the Finder window by any amount, this
-# ensures that the .DS_Store file is updated from Finder's cache.
-
-# make the .DS_Store file read only
-chmod 444 /Volumes/WSJT-X/.DS_Store
-
-# update the custom .DS_Store file in the source repository (NOTE the file name)
-cp /Volumes/WSJT-X/.DS_Store .../wsjtx/wsjtx_DMG.DS_Store
-
-# dismount and eject the R/W DMG and discard it
-hdiutil detach /Volumes/WSJT-X
-rm rw.dmg
-
-# build a new package and try out the new installer to test your changes
-# if all is well commit the changes
-
-# That's all Folks!
+Changing the content of the DragNDrop DMG root folder.
+======================================================
+
+The files and links in this folder are populated by the WSJT-X CMake build script. There are install commands which are only run on Apple hosts, this is important because they will get installed at the install root on other platforms, which would be very bad on Linux for example since that is /usr normally!
+
+The symlink to /Applications, the background image (derived from ".../artwork/DragNDrop Background.svg") and, the custom .DS_Store file (".../Darwin/wsjtx_DMG.DS_Store") are all handled specifically by the CPack DragNDrop packager so you don't need to install those.
+
+
+
+Modifying the .DS_Store folder options for the DragNDrop DMG root folder.
+=========================================================================
+
+The DragNDrop installer is a generated a DMG file that has a custom .DS_Store file that defines the layout, background image and, folder view options of the DMG root folder.
+
+To modify this file, first you need to make a DragNDrop package then mount the DMG file, then modify the root .DS_Store file using Finder. Once you are happy with the results, you check into source control the modified .DS_Store file and then future package builds will use that file.
+
+The installer DMG is read only and shrunk to exactly the size of the contents, also the .DS_Store file is read only and the background image PNG file is hidden. You need to undo all of these things before changing the .DS_Store file. Don't forget to redo these things before checking in a new version of the custom .DS_Store file.
+
+The following recipe shows how to amend the content and layout of the DMG root folder:
+
+# convert the DMG to a R/W copy (substitute the DMG you have built)
+hdiutil convert wsjtx-1.7.0-rc1-Darwin.dmg -format UDRW -o rw.dmg
+
+# expand the R/W copy to make room for changes
+# first find the current number of sectors
+hdiutil resize -limits rw.dmg
+# the output looks like:
+#
+# min cur max
+#109696 109696 33037872
+#
+# you need to increase the sector count to something a bit bigger than current
+# e.g. in this case use 110000
+hdiutil resize -sectors 110000 rw.dmg
+
+# now you can mount the R/W DMG
+hdiutil attach rw.dmg
+
+# make the .DS_Store file writeable
+chmod 644 /Volumes/WSJT-X/.DS_Store
+
+# now you can change Finder view options, rearrange icons etc. Remember that you are
+# only changing the folder options, not the folder content as that is controlled by
+# the install steps in the project CMakeLists.txt if you are adding or removing a file
+# to the DMG root folder, you need to have changed the install steps before doing this
+# procedure so the content changes are reflected in the installer DMG you start with.
+
+# when you are happy with the layout etc. move the Finder window by any amount, this
+# ensures that the .DS_Store file is updated from Finder's cache.
+
+# make the .DS_Store file read only
+chmod 444 /Volumes/WSJT-X/.DS_Store
+
+# update the custom .DS_Store file in the source repository (NOTE the file name)
+cp /Volumes/WSJT-X/.DS_Store .../wsjtx/wsjtx_DMG.DS_Store
+
+# dismount and eject the R/W DMG and discard it
+hdiutil detach /Volumes/WSJT-X
+rm rw.dmg
+
+# build a new package and try out the new installer to test your changes
+# if all is well commit the changes
+
+# That's all Folks!
diff --git a/Darwin/postflight.sh.in b/Darwin/postflight.sh.in
index f5fc297e..0f0d9cbf 100755
--- a/Darwin/postflight.sh.in
+++ b/Darwin/postflight.sh.in
@@ -1,3 +1,3 @@
-#!/bin/bash
-"$2@CMAKE_INSTALL_SUBDIR@/@WSJTX_BUNDLE_NAME@.app/Contents/MacOS/@WSJTX_BUNDLE_NAME@" --mac-install
-exit 0
+#!/bin/bash
+"$2@CMAKE_INSTALL_SUBDIR@/@WSJTX_BUNDLE_NAME@.app/Contents/MacOS/@WSJTX_BUNDLE_NAME@" --mac-install
+exit 0
diff --git a/Darwin/postupgrade.sh.in b/Darwin/postupgrade.sh.in
index 06bd9865..6e267ced 100755
--- a/Darwin/postupgrade.sh.in
+++ b/Darwin/postupgrade.sh.in
@@ -1,2 +1,2 @@
-#!/bin/bash
-exit 0
+#!/bin/bash
+exit 0