Skip to content

Commit 5e77a9f

Browse files
committed
Move sdef to build script phase
1 parent 7f798d0 commit 5e77a9f

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

iTerm2.xcodeproj/project.pbxproj

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,6 @@
1818
E1E4B5221518E6F70063F299 /* QSiTerm2TerminalMediator.m in Sources */ = {isa = PBXBuildFile; fileRef = E1E4B5211518E6F70063F299 /* QSiTerm2TerminalMediator.m */; };
1919
/* End PBXBuildFile section */
2020

21-
/* Begin PBXBuildRule section */
22-
E188D3F61520F0E100176E28 /* PBXBuildRule */ = {
23-
isa = PBXBuildRule;
24-
compilerSpec = com.apple.compilers.proxy.script;
25-
filePatterns = "*.app";
26-
fileType = pattern.proxy;
27-
inputFiles = (
28-
);
29-
isEditable = 1;
30-
outputFiles = (
31-
"$(DERIVED_FILES_DIR)/$(INPUT_FILE_BASE).h",
32-
);
33-
script = "if [[ -z \"${GITHUB_ACTIONS}\" ]]; then\nsdef \"$INPUT_FILE_PATH\" | sdp -fh -o \"$DERIVED_FILES_DIR\" --basename \"$INPUT_FILE_BASE\" --bundleid `defaults read \"$INPUT_FILE_PATH/Contents/Info\" CFBundleIdentifier`\nfi\n";
34-
};
35-
/* End PBXBuildRule section */
36-
3721
/* Begin PBXFileReference section */
3822
CD7B3E462D60066D008B8715 /* QSFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QSFoundation.framework; path = ../../../../../private/tmp/QS/build/Debug/QSFoundation.framework; sourceTree = "<group>"; };
3923
CD7B3E482D600677008B8715 /* QSCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QSCore.framework; path = ../../../../../private/tmp/QS/build/Debug/QSCore.framework; sourceTree = "<group>"; };
@@ -151,13 +135,13 @@
151135
isa = PBXNativeTarget;
152136
buildConfigurationList = E1E4B5191518E4D00063F299 /* Build configuration list for PBXNativeTarget "iTerm2" */;
153137
buildPhases = (
138+
CD74C78E2DF5E98800C548DE /* ShellScript */,
154139
E1E4B4F81518E4D00063F299 /* Update version and documentation */,
155140
E1E4B4F51518E4D00063F299 /* Sources */,
156141
E1E4B4F61518E4D00063F299 /* Frameworks */,
157142
E1E4B4F71518E4D00063F299 /* Resources */,
158143
);
159144
buildRules = (
160-
E188D3F61520F0E100176E28 /* PBXBuildRule */,
161145
);
162146
dependencies = (
163147
);
@@ -211,6 +195,25 @@
211195
/* End PBXResourcesBuildPhase section */
212196

213197
/* Begin PBXShellScriptBuildPhase section */
198+
CD74C78E2DF5E98800C548DE /* ShellScript */ = {
199+
isa = PBXShellScriptBuildPhase;
200+
buildActionMask = 2147483647;
201+
files = (
202+
);
203+
inputFileListPaths = (
204+
);
205+
inputPaths = (
206+
/Applications/iTerm.app,
207+
);
208+
outputFileListPaths = (
209+
);
210+
outputPaths = (
211+
"$(DERIVED_FILE_DIR)/iTerm2/iTerm.h",
212+
);
213+
runOnlyForDeploymentPostprocessing = 0;
214+
shellPath = /bin/sh;
215+
shellScript = "INPUT_FILE_PATH=\"/Applications/iTerm.app\"\nif [[ -z \"${GITHUB_ACTIONS}\" ]]; then\nsdef \"$INPUT_FILE_PATH\" | sdp -fh -o \"$DERIVED_FILES_DIR\" --basename \"iTerm\" --bundleid `defaults read \"$INPUT_FILE_PATH/Contents/Info\" CFBundleIdentifier` -o iTerm2\nfi\n";
216+
};
214217
E1E4B4F81518E4D00063F299 /* Update version and documentation */ = {
215218
isa = PBXShellScriptBuildPhase;
216219
buildActionMask = 2147483647;

iTerm2/iTerm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ typedef enum iTermSaveOptions iTermSaveOptions;
4848

4949
// The application's top-level scripting object.
5050
@interface iTermApplication : SBApplication
51+
+ (iTermApplication *) application;
5152

5253
- (SBElementArray<iTermWindow *> *) windows;
5354

0 commit comments

Comments
 (0)