Selaa lähdekoodia

Mac Bundle Version set from Makefile.

Thomas Buck 11 vuotta sitten
vanhempi
commit
d66fd2dca8
4 muutettua tiedostoa jossa 43 lisäystä ja 35 poistoa
  1. 1
    0
      Makefile
  2. 0
    34
      mac_dist/Info.plist
  3. 0
    1
      mac_dist/bundle.sh
  4. 42
    0
      mac_dist/plist.sh

+ 1
- 0
Makefile Näytä tiedosto

@@ -116,6 +116,7 @@ targets: $(TARGETS)
116 116
 
117 117
 bundle: release
118 118
 	mac_dist/bundle.sh
119
+	mac_dist/plist.sh $(NAME) $(VERSION) $(BUILD_ID) > bin/OpenRaider.app/Contents/Info.plist
119 120
 	mac_dist/frameworks.sh
120 121
 
121 122
 bundle-image: bundle

+ 0
- 34
mac_dist/Info.plist Näytä tiedosto

@@ -1,34 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
-<plist version="1.0">
4
-<dict>
5
-        <key>CFBundleDevelopmentRegion</key>
6
-        <string>English</string>
7
-        <key>CFBundleExecutable</key>
8
-        <string>OpenRaider</string>
9
-        <key>CFBundleGetInfoString</key>
10
-        <string>OpenRaider Version 0.1.1</string>
11
-        <key>CFBundleIconFile</key>
12
-        <string>openraider.icns</string>
13
-        <key>CFBundleIdentifier</key>
14
-        <string>de.xythobuz.openraider</string>
15
-        <key>CFBundleInfoDictionaryVersion</key>
16
-        <string>6.0</string>
17
-        <key>CFBundleLongVersionString</key>
18
-        <string>0.1.1</string>
19
-        <key>CFBundleName</key>
20
-        <string>OpenRaider</string>
21
-        <key>CFBundlePackageType</key>
22
-        <string>APPL</string>
23
-        <key>CFBundleShortVersionString</key>
24
-        <string>0.1.1</string>
25
-        <key>CFBundleSignature</key>
26
-        <string>????</string>
27
-        <key>CFBundleVersion</key>
28
-        <string>0.1.1</string>
29
-        <key>CSResourcesFileMapped</key>
30
-        <true/>
31
-        <key>NSHumanReadableCopyright</key>
32
-        <string>Copyright 2001 - 2013</string>
33
-</dict>
34
-</plist>

+ 0
- 1
mac_dist/bundle.sh Näytä tiedosto

@@ -6,7 +6,6 @@ mkdir -p bin/OpenRaider.app/Contents/Resources/defaults
6 6
 mkdir -p bin/OpenRaider.app/Contents/Frameworks
7 7
 
8 8
 echo Moving bundle data in place
9
-cp mac_dist/Info.plist bin/OpenRaider.app/Contents/Info.plist
10 9
 cp mac_dist/openraider.icns bin/OpenRaider.app/Contents/Resources/openraider.icns
11 10
 cp mac_dist/OpenRaider.sh bin/OpenRaider.app/Contents/MacOS/OpenRaider
12 11
 cp bin/release/OpenRaider bin/OpenRaider.app/Contents/MacOS/OpenRaider-bin

+ 42
- 0
mac_dist/plist.sh Näytä tiedosto

@@ -0,0 +1,42 @@
1
+#!/bin/sh
2
+
3
+# Argument 1: Project Name
4
+# Argument 2: Short Version (0.1.1)
5
+# Argument 3: Long Version (0.1.1-20131214)
6
+
7
+YEAR=`date +%Y`
8
+
9
+echo '<?xml version="1.0" encoding="UTF-8"?>'
10
+echo '<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">'
11
+echo '<plist version="1.0">'
12
+echo '<dict>'
13
+echo '        <key>CFBundleDevelopmentRegion</key>'
14
+echo '        <string>English</string>'
15
+echo '        <key>CFBundleExecutable</key>'
16
+echo "        <string>$1</string>"
17
+echo '        <key>CFBundleGetInfoString</key>'
18
+echo "        <string>$1 Version $2-$3</string>"
19
+echo '        <key>CFBundleIconFile</key>'
20
+echo '        <string>openraider.icns</string>'
21
+echo '        <key>CFBundleIdentifier</key>'
22
+echo '        <string>de.xythobuz.openraider</string>'
23
+echo '        <key>CFBundleInfoDictionaryVersion</key>'
24
+echo '        <string>6.0</string>'
25
+echo '        <key>CFBundleLongVersionString</key>'
26
+echo "        <string>$2-$3</string>"
27
+echo '        <key>CFBundleName</key>'
28
+echo "        <string>$1</string>"
29
+echo '        <key>CFBundlePackageType</key>'
30
+echo '        <string>APPL</string>'
31
+echo '        <key>CFBundleShortVersionString</key>'
32
+echo "        <string>$2-$3</string>"
33
+echo '        <key>CFBundleSignature</key>'
34
+echo '        <string>????</string>'
35
+echo '        <key>CFBundleVersion</key>'
36
+echo "        <string>$2-$3</string>"
37
+echo '        <key>CSResourcesFileMapped</key>'
38
+echo '        <true/>'
39
+echo '        <key>NSHumanReadableCopyright</key>'
40
+echo "        <string>Copyright 2001 - ${YEAR}</string>"
41
+echo '</dict>'
42
+echo '</plist>'

Loading…
Peruuta
Tallenna