Skip to content

Commit f634044

Browse files
committed
fix macOS build production name
1 parent 4c1805d commit f634044

File tree

5 files changed

+27
-52
lines changed

5 files changed

+27
-52
lines changed

macos/Base.lproj/MainMenu.xib

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14109" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14109"/>
4+
<deployment identifier="macosx"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
56
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
67
</dependencies>
78
<objects>
@@ -12,19 +13,19 @@
1213
</customObject>
1314
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
1415
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
15-
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="Example_Embedder" customModuleProvider="target">
16+
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="Tetrix" customModuleProvider="target">
1617
<connections>
1718
<outlet property="window" destination="QvC-M9-y7g" id="gIp-Ho-8D9"/>
1819
</connections>
1920
</customObject>
2021
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
2122
<menu title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
2223
<items>
23-
<menuItem title="Flutter Desktop Example" id="1Xt-HY-uBw">
24+
<menuItem title="Tetris" id="1Xt-HY-uBw">
2425
<modifierMask key="keyEquivalentModifierMask"/>
25-
<menu key="submenu" title="Flutter Desktop Example" systemMenu="apple" id="uQy-DD-JDr">
26+
<menu key="submenu" title="Tetris" systemMenu="apple" id="uQy-DD-JDr">
2627
<items>
27-
<menuItem title="About Flutter Desktop Example" id="5kV-Vb-QxS">
28+
<menuItem title="About Tetris" id="5kV-Vb-QxS">
2829
<modifierMask key="keyEquivalentModifierMask"/>
2930
<connections>
3031
<action selector="orderFrontStandardAboutPanel:" target="-1" id="Exp-CZ-Vem"/>
@@ -38,7 +39,7 @@
3839
<menu key="submenu" title="Services" systemMenu="services" id="hz9-B4-Xy5"/>
3940
</menuItem>
4041
<menuItem isSeparatorItem="YES" id="4je-JR-u6R"/>
41-
<menuItem title="Hide Flutter Desktop Example" keyEquivalent="h" id="Olw-nP-bQN">
42+
<menuItem title="Hide Tetris" keyEquivalent="h" id="Olw-nP-bQN">
4243
<connections>
4344
<action selector="hide:" target="-1" id="PnN-Uc-m68"/>
4445
</connections>
@@ -56,7 +57,7 @@
5657
</connections>
5758
</menuItem>
5859
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
59-
<menuItem title="Quit Flutter Desktop Example" keyEquivalent="q" id="4sb-4s-VLi">
60+
<menuItem title="Quit Tetris" keyEquivalent="q" id="4sb-4s-VLi">
6061
<connections>
6162
<action selector="terminate:" target="-1" id="Te7-pn-YzF"/>
6263
</connections>
@@ -323,16 +324,16 @@
323324
</menuItem>
324325
</items>
325326
</menu>
326-
<window title="Flutter Desktop Example" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="ExampleWindow" customModule="Example_Embedder" customModuleProvider="target">
327+
<window title="Tetris" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="ExampleWindow" customModule="Tetrix" customModuleProvider="target">
327328
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
328329
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
329330
<rect key="contentRect" x="335" y="390" width="480" height="360"/>
330-
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1577"/>
331+
<rect key="screenRect" x="0.0" y="0.0" width="1280" height="777"/>
331332
<view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ">
332333
<rect key="frame" x="0.0" y="0.0" width="480" height="360"/>
333334
<autoresizingMask key="autoresizingMask"/>
334335
<subviews>
335-
<openGLView colorSize="5bit_RGB_8bit_Alpha" useAuxiliaryDepthBufferStencil="NO" useDoubleBufferingEnabled="YES" allowOffline="YES" wantsBestResolutionOpenGLSurface="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gEc-a8-YO4" userLabel="Flutter View" customClass="FLEView">
336+
<openGLView wantsLayer="YES" colorSize="5bit_RGB_8bit_Alpha" useAuxiliaryDepthBufferStencil="NO" useDoubleBufferingEnabled="YES" allowOffline="YES" wantsBestResolutionOpenGLSurface="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gEc-a8-YO4" userLabel="Flutter View" customClass="FLEView">
336337
<rect key="frame" x="0.0" y="0.0" width="480" height="360"/>
337338
<connections>
338339
<outlet property="reshapeListener" destination="G1H-AI-kys" id="1cc-4d-RFE"/>

macos/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<key>LSMinimumSystemVersion</key>
2424
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
2525
<key>NSHumanReadableCopyright</key>
26-
<string>Copyright © 2018 Google LLC. All rights reserved.</string>
26+
<string>Copyright © YangBin. All rights reserved.</string>
2727
<key>NSMainNibFile</key>
2828
<string>MainMenu</string>
2929
<key>NSPrincipalClass</key>

macos/Runner.xcodeproj/project.pbxproj

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
33CC111E2044C6BF0003C045 /* ShellScript */,
1515
);
1616
dependencies = (
17-
33D1A0EC22148486006C7A3E /* PBXTargetDependency */,
1817
);
1918
name = "Build Flutter Bundle";
2019
productName = FLX;
@@ -60,7 +59,7 @@
6059
33A2DE632267798600914F77 /* PluginRegistrant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PluginRegistrant.h; sourceTree = "<group>"; };
6160
33A2DE642267798600914F77 /* PluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PluginRegistrant.m; sourceTree = "<group>"; };
6261
33BA886B226E7BE8003329D5 /* Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
63-
33CC10ED2044A3C60003C045 /* Flutter Desktop Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Flutter Desktop Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
62+
33CC10ED2044A3C60003C045 /* Tetris.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Tetris.app; sourceTree = BUILT_PRODUCTS_DIR; };
6463
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6564
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
6665
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
@@ -113,7 +112,7 @@
113112
33CC10EE2044A3C60003C045 /* Products */ = {
114113
isa = PBXGroup;
115114
children = (
116-
33CC10ED2044A3C60003C045 /* Flutter Desktop Example.app */,
115+
33CC10ED2044A3C60003C045 /* Tetris.app */,
117116
);
118117
name = Products;
119118
sourceTree = "<group>";
@@ -152,12 +151,11 @@
152151
buildRules = (
153152
);
154153
dependencies = (
155-
33D1A0EA2214847F006C7A3E /* PBXTargetDependency */,
156154
33CC11202044C79F0003C045 /* PBXTargetDependency */,
157155
);
158156
name = Runner;
159-
productName = "Flutter Desktop Example";
160-
productReference = 33CC10ED2044A3C60003C045 /* Flutter Desktop Example.app */;
157+
productName = "Tetris";
158+
productReference = 33CC10ED2044A3C60003C045 /* Tetris.app */;
161159
productType = "com.apple.product-type.application";
162160
};
163161
/* End PBXNativeTarget section */
@@ -385,8 +383,8 @@
385383
FRAMEWORK_SEARCH_PATHS = $SYMROOT/flutter_framework;
386384
INFOPLIST_FILE = Info.plist;
387385
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
388-
PRODUCT_BUNDLE_IDENTIFIER = com.google.FlutterEmbedderMacExample.FlutterDesktopExample;
389-
PRODUCT_NAME = "Flutter Desktop Example";
386+
PRODUCT_BUNDLE_IDENTIFIER = tech.soit.tetris.mac;
387+
PRODUCT_NAME = Tetris;
390388
PROVISIONING_PROFILE_SPECIFIER = "";
391389
SWIFT_OBJC_BRIDGING_HEADER = "Runner-Bridging-Header.h";
392390
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -405,8 +403,9 @@
405403
FRAMEWORK_SEARCH_PATHS = $SYMROOT/flutter_framework;
406404
INFOPLIST_FILE = Info.plist;
407405
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
408-
PRODUCT_BUNDLE_IDENTIFIER = com.google.FlutterEmbedderMacExample.FlutterDesktopExample;
409-
PRODUCT_NAME = "Flutter Desktop Example";
406+
MTL_ENABLE_DEBUG_INFO = YES;
407+
PRODUCT_BUNDLE_IDENTIFIER = tech.soit.tetris.mac;
408+
PRODUCT_NAME = Tetris;
410409
PROVISIONING_PROFILE_SPECIFIER = "";
411410
SWIFT_OBJC_BRIDGING_HEADER = "Runner-Bridging-Header.h";
412411
SWIFT_VERSION = 4.0;
@@ -429,22 +428,6 @@
429428
};
430429
name = Release;
431430
};
432-
33D1A0E622148440006C7A3E /* Debug */ = {
433-
isa = XCBuildConfiguration;
434-
buildSettings = {
435-
CODE_SIGN_STYLE = Automatic;
436-
PRODUCT_NAME = "$(TARGET_NAME)";
437-
};
438-
name = Debug;
439-
};
440-
33D1A0E722148440006C7A3E /* Release */ = {
441-
isa = XCBuildConfiguration;
442-
buildSettings = {
443-
CODE_SIGN_STYLE = Automatic;
444-
PRODUCT_NAME = "$(TARGET_NAME)";
445-
};
446-
name = Release;
447-
};
448431
/* End XCBuildConfiguration section */
449432

450433
/* Begin XCConfigurationList section */
@@ -475,15 +458,6 @@
475458
defaultConfigurationIsVisible = 0;
476459
defaultConfigurationName = Release;
477460
};
478-
33D1A0E522148440006C7A3E /* Build configuration list for PBXAggregateTarget "Copy Flutter Framework" */ = {
479-
isa = XCConfigurationList;
480-
buildConfigurations = (
481-
33D1A0E622148440006C7A3E /* Debug */,
482-
33D1A0E722148440006C7A3E /* Release */,
483-
);
484-
defaultConfigurationIsVisible = 0;
485-
defaultConfigurationName = Release;
486-
};
487461
/* End XCConfigurationList section */
488462
};
489463
rootObject = 33CC10E52044A3C60003C045 /* Project object */;

macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
18-
BuildableName = "Flutter Desktop Example.app"
18+
BuildableName = "Tetris.app"
1919
BlueprintName = "Runner"
2020
ReferencedContainer = "container:Runner.xcodeproj">
2121
</BuildableReference>
@@ -43,7 +43,7 @@
4343
<BuildableReference
4444
BuildableIdentifier = "primary"
4545
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
46-
BuildableName = "Flutter Desktop Example.app"
46+
BuildableName = "Tetris.app"
4747
BlueprintName = "Runner"
4848
ReferencedContainer = "container:Runner.xcodeproj">
4949
</BuildableReference>
@@ -66,7 +66,7 @@
6666
<BuildableReference
6767
BuildableIdentifier = "primary"
6868
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
69-
BuildableName = "Flutter Desktop Example.app"
69+
BuildableName = "Tetris.app"
7070
BlueprintName = "Runner"
7171
ReferencedContainer = "container:Runner.xcodeproj">
7272
</BuildableReference>
@@ -85,7 +85,7 @@
8585
<BuildableReference
8686
BuildableIdentifier = "primary"
8787
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
88-
BuildableName = "Flutter Desktop Example.app"
88+
BuildableName = "Tetris.app"
8989
BlueprintName = "Runner"
9090
ReferencedContainer = "container:Runner.xcodeproj">
9191
</BuildableReference>

macos/name_output.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ readonly flutter_app_dir="${base_dir}/.."
3030
readonly products_dir="${flutter_app_dir}/build/macos/Build/Products"
3131

3232
# Xcode configuration
33-
readonly app_name="Flutter Desktop Example"
33+
readonly app_name="Tetris"
3434
if [[ "${flutter_config}" == "release" ]]; then
3535
readonly build_config="Release"
3636
else

0 commit comments

Comments
 (0)