[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-messenger-build/master] Add OS X drag and drop to applications (closes #17460)



commit cefe5d8dbc02ded03928118a61823ec49ba7085b
Author: Sukhbir Singh <sukhbir@xxxxxxxxxxxxxx>
Date:   Sun Aug 28 22:58:43 2016 -0400

    Add OS X drag and drop to applications (closes #17460)
---
 projects/tor-messenger/DS_Store        | Bin 0 -> 15364 bytes
 projects/tor-messenger/VolumeIcon.icns | Bin 0 -> 124971 bytes
 projects/tor-messenger/background.png  | Bin 0 -> 8012 bytes
 projects/tor-messenger/build.osx       |   7 +++++++
 projects/tor-messenger/config          |   6 ++++++
 5 files changed, 13 insertions(+)

diff --git a/projects/tor-messenger/DS_Store b/projects/tor-messenger/DS_Store
new file mode 100644
index 0000000..2a2073a
Binary files /dev/null and b/projects/tor-messenger/DS_Store differ
diff --git a/projects/tor-messenger/VolumeIcon.icns b/projects/tor-messenger/VolumeIcon.icns
new file mode 100644
index 0000000..db5a495
Binary files /dev/null and b/projects/tor-messenger/VolumeIcon.icns differ
diff --git a/projects/tor-messenger/background.png b/projects/tor-messenger/background.png
new file mode 100644
index 0000000..8a938c2
Binary files /dev/null and b/projects/tor-messenger/background.png differ
diff --git a/projects/tor-messenger/build.osx b/projects/tor-messenger/build.osx
index c7f46c7..a7b261f 100755
--- a/projects/tor-messenger/build.osx
+++ b/projects/tor-messenger/build.osx
@@ -44,6 +44,13 @@ mv torbrowser/TorBrowser.app/Contents/MacOS/Tor/ $rootdir/TorMessenger.app/Conte
 mkdir dmg
 mv TorMessenger.app dmg
 cd dmg
+
+cp $rootdir/VolumeIcon.icns .VolumeIcon.icns
+mkdir .background
+cp $rootdir/background.png .background/
+cp $rootdir/DS_Store .DS_Store
+ln -s /Applications/ .
+
 find . -executable -exec chmod 750 {} \;
 find . ! -executable -exec chmod 640 {} \;
 find . -type f | sed -e 's/^\.\///' | sort | xargs -i echo "{}={}" > ../filelist.txt
diff --git a/projects/tor-messenger/config b/projects/tor-messenger/config
index dc0a28b..225977f 100644
--- a/projects/tor-messenger/config
+++ b/projects/tor-messenger/config
@@ -18,6 +18,12 @@ input_files:
   - filename: start-tor-messenger
   - filename: start-tor-messenger.desktop
   - filename: execdesktop
+  - filename: background.png
+    enable: '[% c("var/osx") %]'
+  - filename: DS_Store
+    enable: '[% c("var/osx") %]'
+  - filename: VolumeIcon.icns
+    enable: '[% c("var/osx") %]'
   - filename: tor-messenger.nsi
     enable: '[% c("var/windows") %]'
   - filename: cert_override.txt



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits