• R/O
  • HTTP
  • SSH
  • HTTPS

Molby: コミット

Molecular Modeling Software


コミットメタ情報

リビジョン363d93d7fb347f013ff2742b97b839b4e49b0a3a (tree)
日時2022-09-19 17:06:49
作者Toshi Nagata <alchemist.2005@nift...>
コミッターToshi Nagata

ログメッセージ

Xcode project is updated for making release build of MolbyMacLegacy

変更サマリ

差分

--- a/build-xcode/Molby.xcodeproj/project.pbxproj
+++ b/build-xcode/Molby.xcodeproj/project.pbxproj
@@ -14,6 +14,7 @@
1414 E4CB37171FE4FF42001BB75E /* ShellScript */,
1515 );
1616 dependencies = (
17+ E4589CF728D856C200F55785 /* PBXTargetDependency */,
1718 E4CB37141FE4FF23001BB75E /* PBXTargetDependency */,
1819 E4CB37191FE50707001BB75E /* PBXTargetDependency */,
1920 E4B710FF2306BD0A000A77EB /* PBXTargetDependency */,
@@ -158,6 +159,13 @@
158159 /* End PBXBuildFile section */
159160
160161 /* Begin PBXContainerItemProxy section */
162+ E4589CF628D856C200F55785 /* PBXContainerItemProxy */ = {
163+ isa = PBXContainerItemProxy;
164+ containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
165+ proxyType = 1;
166+ remoteGlobalIDString = E4059F9628C46A6E0052B36B;
167+ remoteInfo = Molby_MacLegacy;
168+ };
161169 E4B710FE2306BD0A000A77EB /* PBXContainerItemProxy */ = {
162170 isa = PBXContainerItemProxy;
163171 containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
@@ -186,7 +194,7 @@
186194 E403568328CF6A3D008E2C46 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = /System/Library/Frameworks/QuartzCore.framework; sourceTree = "<absolute>"; };
187195 E403568728D0C859008E2C46 /* window_msw.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = window_msw.cpp; sourceTree = "<group>"; };
188196 E403568828D0C8C4008E2C46 /* textctrl_msw.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = textctrl_msw.cpp; sourceTree = "<group>"; };
189- E4059FE428C46A6E0052B36B /* Molby_MacLegacy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Molby_MacLegacy.app; sourceTree = BUILT_PRODUCTS_DIR; };
197+ E4059FE428C46A6E0052B36B /* MolbyMacLegacy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MolbyMacLegacy.app; sourceTree = BUILT_PRODUCTS_DIR; };
190198 E4059FE628C46B320052B36B /* Molby_MacLegacy-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Molby_MacLegacy-Info.plist"; sourceTree = "<group>"; };
191199 E41251B728CD92A100E12983 /* MyListCtrl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MyListCtrl.cpp; sourceTree = "<group>"; };
192200 E41251BA28CD92AD00E12983 /* MyListCtrl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MyListCtrl.h; sourceTree = "<group>"; };
@@ -356,7 +364,7 @@
356364 isa = PBXGroup;
357365 children = (
358366 8D1107320486CEB800E47090 /* Molby.app */,
359- E4059FE428C46A6E0052B36B /* Molby_MacLegacy.app */,
367+ E4059FE428C46A6E0052B36B /* MolbyMacLegacy.app */,
360368 );
361369 name = Products;
362370 sourceTree = "<group>";
@@ -631,9 +639,9 @@
631639 productReference = 8D1107320486CEB800E47090 /* Molby.app */;
632640 productType = "com.apple.product-type.application";
633641 };
634- E4059F9628C46A6E0052B36B /* Molby_MacLegacy */ = {
642+ E4059F9628C46A6E0052B36B /* MolbyMacLegacy */ = {
635643 isa = PBXNativeTarget;
636- buildConfigurationList = E4059FE128C46A6E0052B36B /* Build configuration list for PBXNativeTarget "Molby_MacLegacy" */;
644+ buildConfigurationList = E4059FE128C46A6E0052B36B /* Build configuration list for PBXNativeTarget "MolbyMacLegacy" */;
637645 buildPhases = (
638646 E4059F9728C46A6E0052B36B /* ShellScript */,
639647 E4059F9828C46A6E0052B36B /* ShellScript */,
@@ -647,10 +655,10 @@
647655 );
648656 dependencies = (
649657 );
650- name = Molby_MacLegacy;
658+ name = MolbyMacLegacy;
651659 productInstallPath = "$(HOME)/Applications";
652660 productName = Molby;
653- productReference = E4059FE428C46A6E0052B36B /* Molby_MacLegacy.app */;
661+ productReference = E4059FE428C46A6E0052B36B /* MolbyMacLegacy.app */;
654662 productType = "com.apple.product-type.application";
655663 };
656664 /* End PBXNativeTarget section */
@@ -689,7 +697,7 @@
689697 E4CB370B1FE2C1F7001BB75E /* Molby_win32 */,
690698 E4B710FA2306BC80000A77EB /* Molby_win64 */,
691699 E4CB370F1FE4FF0E001BB75E /* Molby_archive */,
692- E4059F9628C46A6E0052B36B /* Molby_MacLegacy */,
700+ E4059F9628C46A6E0052B36B /* MolbyMacLegacy */,
693701 );
694702 };
695703 /* End PBXProject section */
@@ -780,7 +788,7 @@
780788 );
781789 runOnlyForDeploymentPostprocessing = 0;
782790 shellPath = /bin/sh;
783- shellScript = "rm -rf \"$TARGET_BUILD_DIR/Molby.app/Contents/Resources/MolbyDoc\"\ncp -a \"$PROJECT_DIR/../Documents/MolbyDoc\" \"$TARGET_BUILD_DIR/Molby.app/Contents/Resources/\"\nif [ \"${BUILD_STYLE:=$CONFIGURATION}\" = \"Release\" ]; then\n rm -rf \"$PROJECT_DIR/../latest_binaries/Molby.app\" || exit 1\n (cd \"$TARGET_BUILD_DIR\"; cp -a Molby.app \"$PROJECT_DIR/../latest_binaries\") || exit 1\nfi\nexit 0\n";
791+ shellScript = "rm -rf \"$TARGET_BUILD_DIR/MolbyMacLegacy.app/Contents/Resources/MolbyDoc\"\ncp -a \"$PROJECT_DIR/../Documents/MolbyDoc\" \"$TARGET_BUILD_DIR/MolbyMacLegacy.app/Contents/Resources/\"\nif [ \"${BUILD_STYLE:=$CONFIGURATION}\" = \"Release\" ]; then\n rm -rf \"$PROJECT_DIR/../latest_binaries/MolbyMacLegacy.app\" || exit 1\n (cd \"$TARGET_BUILD_DIR\"; cp -a MolbyMacLegacy.app \"$PROJECT_DIR/../latest_binaries\") || exit 1\nfi\nexit 0\n";
784792 };
785793 E43C5D9518E553D9004FE397 /* ShellScript */ = {
786794 isa = PBXShellScriptBuildPhase;
@@ -840,7 +848,7 @@
840848 );
841849 runOnlyForDeploymentPostprocessing = 0;
842850 shellPath = /bin/sh;
843- shellScript = "if [ \"${BUILD_STYLE:=$CONFIGURATION}\" = \"Release\" ]; then\n (cd \"$PROJECT_DIR/../latest_binaries\" && rm -f MolbyMac.zip && zip -r MolbyMac.zip Molby.app -x \\*.DS_Store -x \\*.svn*) || exit 1\n (cd \"$PROJECT_DIR/../Documents\" && /usr/bin/ruby makedoc.rb && cp -a MolbyDoc \"$PROJECT_DIR/../latest_binaries\") || exit 1\n (cd \"$PROJECT_DIR/../latest_binaries\" && zip -r MolbyDoc.zip MolbyDoc -x \\*.DS_Store -x \\*.svn*) || exit 1\n#(cd \"$PROJECT_DIR/../build-win32\"; PATH=/usr/local/homebrew/bin:$PATH; make setup) || exit 1\n (cd \"$PROJECT_DIR/../build-win\"; PATH=/usr/local/homebrew/bin:$PATH; make setup) || exit 1\nfi\n";
851+ shellScript = "if [ \"${BUILD_STYLE:=$CONFIGURATION}\" = \"Release\" ]; then\n (cd \"$PROJECT_DIR/../latest_binaries\" && rm -f MolbyMac.zip && zip -r MolbyMac.zip Molby.app -x \\*.DS_Store -x \\*.svn*) || exit 1\n (cd \"$PROJECT_DIR/../latest_binaries\" && rm -f MolbyMacLegacy.zip && zip -r MolbyMacLegacy.zip MolbyMacLegacy.app -x \\*.DS_Store -x \\*.svn*) || exit 1\n (cd \"$PROJECT_DIR/../Documents\" && /usr/bin/ruby makedoc.rb && cp -a MolbyDoc \"$PROJECT_DIR/../latest_binaries\") || exit 1\n (cd \"$PROJECT_DIR/../latest_binaries\" && zip -r MolbyDoc.zip MolbyDoc -x \\*.DS_Store -x \\*.svn*) || exit 1\n#(cd \"$PROJECT_DIR/../build-win32\"; PATH=/usr/local/homebrew/bin:$PATH; make setup) || exit 1\n (cd \"$PROJECT_DIR/../build-win\"; PATH=/usr/local/homebrew/bin:$PATH; make setup) || exit 1\nfi\n";
844852 };
845853 E4FC7B57183E516E0064FB2E /* ShellScript */ = {
846854 isa = PBXShellScriptBuildPhase;
@@ -970,6 +978,11 @@
970978 /* End PBXSourcesBuildPhase section */
971979
972980 /* Begin PBXTargetDependency section */
981+ E4589CF728D856C200F55785 /* PBXTargetDependency */ = {
982+ isa = PBXTargetDependency;
983+ target = E4059F9628C46A6E0052B36B /* MolbyMacLegacy */;
984+ targetProxy = E4589CF628D856C200F55785 /* PBXContainerItemProxy */;
985+ };
973986 E4B710FF2306BD0A000A77EB /* PBXTargetDependency */ = {
974987 isa = PBXTargetDependency;
975988 target = E4B710FA2306BC80000A77EB /* Molby_win64 */;
@@ -1473,7 +1486,7 @@
14731486 defaultConfigurationIsVisible = 0;
14741487 defaultConfigurationName = Release;
14751488 };
1476- E4059FE128C46A6E0052B36B /* Build configuration list for PBXNativeTarget "Molby_MacLegacy" */ = {
1489+ E4059FE128C46A6E0052B36B /* Build configuration list for PBXNativeTarget "MolbyMacLegacy" */ = {
14771490 isa = XCConfigurationList;
14781491 buildConfigurations = (
14791492 E4059FE228C46A6E0052B36B /* Debug */,
--- a/build-xcode/Molby.xcodeproj/xcshareddata/xcschemes/Molby_MacLegacy.xcscheme
+++ b/build-xcode/Molby.xcodeproj/xcshareddata/xcschemes/Molby_MacLegacy.xcscheme
@@ -15,8 +15,8 @@
1515 <BuildableReference
1616 BuildableIdentifier = "primary"
1717 BlueprintIdentifier = "E4059F9628C46A6E0052B36B"
18- BuildableName = "Molby_MacLegacy.app"
19- BlueprintName = "Molby_MacLegacy"
18+ BuildableName = "MolbyMacLegacy.app"
19+ BlueprintName = "MolbyMacLegacy"
2020 ReferencedContainer = "container:Molby.xcodeproj">
2121 </BuildableReference>
2222 </BuildActionEntry>
@@ -33,8 +33,8 @@
3333 <BuildableReference
3434 BuildableIdentifier = "primary"
3535 BlueprintIdentifier = "E4059F9628C46A6E0052B36B"
36- BuildableName = "Molby_MacLegacy.app"
37- BlueprintName = "Molby_MacLegacy"
36+ BuildableName = "MolbyMacLegacy.app"
37+ BlueprintName = "MolbyMacLegacy"
3838 ReferencedContainer = "container:Molby.xcodeproj">
3939 </BuildableReference>
4040 </MacroExpansion>
@@ -56,8 +56,8 @@
5656 <BuildableReference
5757 BuildableIdentifier = "primary"
5858 BlueprintIdentifier = "E4059F9628C46A6E0052B36B"
59- BuildableName = "Molby_MacLegacy.app"
60- BlueprintName = "Molby_MacLegacy"
59+ BuildableName = "MolbyMacLegacy.app"
60+ BlueprintName = "MolbyMacLegacy"
6161 ReferencedContainer = "container:Molby.xcodeproj">
6262 </BuildableReference>
6363 </BuildableProductRunnable>
@@ -75,8 +75,8 @@
7575 <BuildableReference
7676 BuildableIdentifier = "primary"
7777 BlueprintIdentifier = "E4059F9628C46A6E0052B36B"
78- BuildableName = "Molby_MacLegacy.app"
79- BlueprintName = "Molby_MacLegacy"
78+ BuildableName = "MolbyMacLegacy.app"
79+ BlueprintName = "MolbyMacLegacy"
8080 ReferencedContainer = "container:Molby.xcodeproj">
8181 </BuildableReference>
8282 </BuildableProductRunnable>
--- a/build-xcode/Molby_MacLegacy-Info.plist
+++ b/build-xcode/Molby_MacLegacy-Info.plist
@@ -34,11 +34,11 @@
3434 <key>CFBundlePackageType</key>
3535 <string>APPL</string>
3636 <key>CFBundleShortVersionString</key>
37- <string>Version 1.0.2</string>
37+ <string>Version 1.1.0</string>
3838 <key>CFBundleSignature</key>
3939 <string>????</string>
4040 <key>CFBundleVersion</key>
41- <string>v1.0.2</string>
41+ <string>v1.1.0</string>
4242 <key>NSHumanReadableCopyright</key>
4343 <string>Copyright 2008-2022 Toshi Nagata</string>
4444 <key>NSPrincipalClass</key>
--- a/update_version.rb
+++ b/update_version.rb
@@ -59,6 +59,23 @@ modify_file(nm) { |s|
5959 end
6060 }
6161
62+# Modify_MacLegacy Info.plist
63+nm = "build-xcode/Molby_MacLegacy-Info.plist"
64+version = false
65+modify_file(nm) { |s|
66+ if s =~ /Copyright/
67+ s.sub(/[-0-9]+ Toshi Nagata/, "#{yrange} Toshi Nagata")
68+ elsif s =~ /Version \d+\.\d+/
69+ "\t<string>Version #{ver}</string>\n"
70+ elsif version
71+ version = false
72+ "\t<string>#{verstr}</string>\n"
73+ else
74+ version = (s =~ /\bCFBundleVersion\b/)
75+ nil
76+ end
77+}
78+
6279 # Modify InfoPlist.strings
6380 Dir["xcode-build/*.lproj/InfoPlist.strings"].each { |nm|
6481 modify_file(nm) { |s|
旧リポジトリブラウザで表示