Skip to content

Commit d11a276

Browse files
committed
Name the Xcode project scripts build steps
1 parent be5681d commit d11a276

File tree

2 files changed

+33
-51
lines changed

2 files changed

+33
-51
lines changed

TemplateProject/projects/TemplateProject-macOS.xcodeproj/project.pbxproj

Lines changed: 30 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
buildConfigurationList = B87FD1ED2351C6F900CF7307 /* Build configuration list for PBXAggregateTarget "Update plists" */;
2626
buildPhases = (
2727
B87FD1EE2351C71300CF7307 /* Run Script - Update Version */,
28-
4FC523AD29AB9A280011C63B /* ShellScript */,
2928
);
3029
dependencies = (
3130
);
@@ -1641,7 +1640,7 @@
16411640
isa = PBXNativeTarget;
16421641
buildConfigurationList = 4F20EF2F132C69FE0030E34C /* Build configuration list for PBXNativeTarget "VST2" */;
16431642
buildPhases = (
1644-
4F210D6829AB9B98000EBD80 /* Run Script - Prepare Resources */,
1643+
4F210D6829AB9B98000EBD80 /* Prepare Resources */,
16451644
4F20EEC9132C69FE0030E34C /* Resources */,
16461645
4F20EECA132C69FE0030E34C /* Sources */,
16471646
4F20EF2C132C69FE0030E34C /* Frameworks */,
@@ -1661,7 +1660,7 @@
16611660
isa = PBXNativeTarget;
16621661
buildConfigurationList = 4F3907742013EBA400DDA490 /* Build configuration list for PBXNativeTarget "AUv3" */;
16631662
buildPhases = (
1664-
4F78BE3B22E74A7E00AD537E /* Run Script - Touch dummy file */,
1663+
4F78BE3B22E74A7E00AD537E /* Touch dummy file */,
16651664
4F39075C2013EBA300DDA490 /* Sources */,
16661665
4F39075D2013EBA300DDA490 /* Frameworks */,
16671666
4F39075E2013EBA300DDA490 /* Resources */,
@@ -1680,11 +1679,11 @@
16801679
isa = PBXNativeTarget;
16811680
buildConfigurationList = 4F3AE1DC12C0E5E2001FD7A4 /* Build configuration list for PBXNativeTarget "AU" */;
16821681
buildPhases = (
1683-
4F210D6A29AB9BD4000EBD80 /* Run Script - Prepare Resources */,
1682+
4F210D6A29AB9BD4000EBD80 /* Prepare Resources */,
16841683
4F25BECE12C61F47005D51F7 /* Resources */,
16851684
4F3AE1A212C0E5E2001FD7A4 /* Sources */,
16861685
4F3AE1DA12C0E5E2001FD7A4 /* Rez */,
1687-
4F744D4C14005ADA002FAD90 /* Run Script - Clear AudioUnit Caches */,
1686+
4F744D4C14005ADA002FAD90 /* Clear AudioUnit Caches */,
16881687
4FBDD26520A319580054B111 /* Frameworks */,
16891688
);
16901689
buildRules = (
@@ -1701,14 +1700,14 @@
17011700
isa = PBXNativeTarget;
17021701
buildConfigurationList = 4F3EE1EC231438D000004786 /* Build configuration list for PBXNativeTarget "AUv3App" */;
17031702
buildPhases = (
1704-
4F210D6B29AB9C08000EBD80 /* Run Script - Prepare Resources */,
1705-
4FC523AC29AB99F00011C63B /* Run Script - SWELL Resgen */,
1703+
4F210D6B29AB9C08000EBD80 /* Prepare Resources */,
1704+
4FC523AC29AB99F00011C63B /* SWELL Resgen */,
17061705
4F3EE1BE231438D000004786 /* Resources */,
17071706
4F3EE1C1231438D000004786 /* Sources */,
17081707
4F3EE1E6231438D000004786 /* Frameworks */,
17091708
4F3EE1E8231438D000004786 /* Embed Frameworks */,
17101709
4F3EE1EA231438D000004786 /* Embed AUv3 App Extension */,
1711-
4F02E1D723144CDA00731A7D /* Run Script - Force register AUv3 */,
1710+
4F02E1D723144CDA00731A7D /* Force register AUv3 */,
17121711
);
17131712
buildRules = (
17141713
);
@@ -1743,7 +1742,7 @@
17431742
isa = PBXNativeTarget;
17441743
buildConfigurationList = 4F9828DC140A9EB700F3FCC1 /* Build configuration list for PBXNativeTarget "VST3" */;
17451744
buildPhases = (
1746-
4F210D6929AB9BB3000EBD80 /* Run Script - Prepare Resources */,
1745+
4F210D6929AB9BB3000EBD80 /* Prepare Resources */,
17471746
4F9828AF140A9EB700F3FCC1 /* Resources */,
17481747
4F9828B5140A9EB700F3FCC1 /* Sources */,
17491748
4F9828D7140A9EB700F3FCC1 /* Frameworks */,
@@ -1783,8 +1782,8 @@
17831782
isa = PBXNativeTarget;
17841783
buildConfigurationList = 4FD16A0F13B63082001D0217 /* Build configuration list for PBXNativeTarget "APP" */;
17851784
buildPhases = (
1786-
4F210D6729AB9B39000EBD80 /* Run Script - Prepare Resources */,
1787-
4FBCC1B21FD5AE8500EFE550 /* Run Script - SWELL Resgen */,
1785+
4F210D6729AB9B39000EBD80 /* Prepare Resources */,
1786+
4FBCC1B21FD5AE8500EFE550 /* SWELL Resgen */,
17881787
4FD16A0513B63081001D0217 /* Resources */,
17891788
4FD16A0613B63081001D0217 /* Sources */,
17901789
);
@@ -1984,21 +1983,21 @@
19841983
/* End PBXRezBuildPhase section */
19851984

19861985
/* Begin PBXShellScriptBuildPhase section */
1987-
4F02E1D723144CDA00731A7D /* Run Script - Force register AUv3 */ = {
1986+
4F02E1D723144CDA00731A7D /* Force register AUv3 */ = {
19881987
isa = PBXShellScriptBuildPhase;
19891988
buildActionMask = 2147483647;
19901989
files = (
19911990
);
19921991
inputPaths = (
19931992
);
1994-
name = "Run Script - Force register AUv3";
1993+
name = "Force register AUv3";
19951994
outputPaths = (
19961995
);
19971996
runOnlyForDeploymentPostprocessing = 0;
19981997
shellPath = /bin/sh;
19991998
shellScript = "if [ -d $APP_PATH/TemplateProject.app ]; then\n pluginkit -a $APP_PATH/TemplateProject.app/Contents/PlugIns/TemplateProject.appex\n echo \"Force register auv3\"\nelse\n echo \"App path doesn't exist yet, cant force register auv3\"\nfi\n";
20001999
};
2001-
4F210D6729AB9B39000EBD80 /* Run Script - Prepare Resources */ = {
2000+
4F210D6729AB9B39000EBD80 /* Prepare Resources */ = {
20022001
isa = PBXShellScriptBuildPhase;
20032002
alwaysOutOfDate = 1;
20042003
buildActionMask = 2147483647;
@@ -2008,7 +2007,7 @@
20082007
);
20092008
inputPaths = (
20102009
);
2011-
name = "Run Script - Prepare Resources";
2010+
name = "Prepare Resources";
20122011
outputFileListPaths = (
20132012
);
20142013
outputPaths = (
@@ -2017,7 +2016,7 @@
20172016
shellPath = /bin/sh;
20182017
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
20192018
};
2020-
4F210D6829AB9B98000EBD80 /* Run Script - Prepare Resources */ = {
2019+
4F210D6829AB9B98000EBD80 /* Prepare Resources */ = {
20212020
isa = PBXShellScriptBuildPhase;
20222021
alwaysOutOfDate = 1;
20232022
buildActionMask = 2147483647;
@@ -2027,7 +2026,7 @@
20272026
);
20282027
inputPaths = (
20292028
);
2030-
name = "Run Script - Prepare Resources";
2029+
name = "Prepare Resources";
20312030
outputFileListPaths = (
20322031
);
20332032
outputPaths = (
@@ -2036,7 +2035,7 @@
20362035
shellPath = /bin/sh;
20372036
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
20382037
};
2039-
4F210D6929AB9BB3000EBD80 /* Run Script - Prepare Resources */ = {
2038+
4F210D6929AB9BB3000EBD80 /* Prepare Resources */ = {
20402039
isa = PBXShellScriptBuildPhase;
20412040
alwaysOutOfDate = 1;
20422041
buildActionMask = 2147483647;
@@ -2046,7 +2045,7 @@
20462045
);
20472046
inputPaths = (
20482047
);
2049-
name = "Run Script - Prepare Resources";
2048+
name = "Prepare Resources";
20502049
outputFileListPaths = (
20512050
);
20522051
outputPaths = (
@@ -2055,7 +2054,7 @@
20552054
shellPath = /bin/sh;
20562055
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
20572056
};
2058-
4F210D6A29AB9BD4000EBD80 /* Run Script - Prepare Resources */ = {
2057+
4F210D6A29AB9BD4000EBD80 /* Prepare Resources */ = {
20592058
isa = PBXShellScriptBuildPhase;
20602059
alwaysOutOfDate = 1;
20612060
buildActionMask = 2147483647;
@@ -2065,7 +2064,7 @@
20652064
);
20662065
inputPaths = (
20672066
);
2068-
name = "Run Script - Prepare Resources";
2067+
name = "Prepare Resources";
20692068
outputFileListPaths = (
20702069
);
20712070
outputPaths = (
@@ -2074,7 +2073,7 @@
20742073
shellPath = /bin/sh;
20752074
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
20762075
};
2077-
4F210D6B29AB9C08000EBD80 /* Run Script - Prepare Resources */ = {
2076+
4F210D6B29AB9C08000EBD80 /* Prepare Resources */ = {
20782077
isa = PBXShellScriptBuildPhase;
20792078
alwaysOutOfDate = 1;
20802079
buildActionMask = 2147483647;
@@ -2084,7 +2083,7 @@
20842083
);
20852084
inputPaths = (
20862085
);
2087-
name = "Run Script - Prepare Resources";
2086+
name = "Prepare Resources";
20882087
outputFileListPaths = (
20892088
);
20902089
outputPaths = (
@@ -2093,7 +2092,7 @@
20932092
shellPath = /bin/sh;
20942093
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
20952094
};
2096-
4F744D4C14005ADA002FAD90 /* Run Script - Clear AudioUnit Caches */ = {
2095+
4F744D4C14005ADA002FAD90 /* Clear AudioUnit Caches */ = {
20972096
isa = PBXShellScriptBuildPhase;
20982097
alwaysOutOfDate = 1;
20992098
buildActionMask = 2147483647;
@@ -2102,43 +2101,43 @@
21022101
);
21032102
inputPaths = (
21042103
);
2105-
name = "Run Script - Clear AudioUnit Caches";
2104+
name = "Clear AudioUnit Caches";
21062105
outputPaths = (
21072106
);
21082107
runOnlyForDeploymentPostprocessing = 0;
21092108
shellPath = /bin/sh;
21102109
shellScript = "$SCRIPTS_PATH/clear_audiounit_caches.command\n";
21112110
};
2112-
4F78BE3B22E74A7E00AD537E /* Run Script - Touch dummy file */ = {
2111+
4F78BE3B22E74A7E00AD537E /* Touch dummy file */ = {
21132112
isa = PBXShellScriptBuildPhase;
21142113
buildActionMask = 2147483647;
21152114
files = (
21162115
);
21172116
inputPaths = (
21182117
);
2119-
name = "Run Script - Touch dummy file";
2118+
name = "Touch dummy file";
21202119
outputPaths = (
21212120
);
21222121
runOnlyForDeploymentPostprocessing = 0;
21232122
shellPath = /bin/sh;
21242123
shellScript = "touch $IPLUG_PATH/AUv3/IPlugAUv3Appex.m\n";
21252124
};
2126-
4FBCC1B21FD5AE8500EFE550 /* Run Script - SWELL Resgen */ = {
2125+
4FBCC1B21FD5AE8500EFE550 /* SWELL Resgen */ = {
21272126
isa = PBXShellScriptBuildPhase;
21282127
alwaysOutOfDate = 1;
21292128
buildActionMask = 2147483647;
21302129
files = (
21312130
);
21322131
inputPaths = (
21332132
);
2134-
name = "Run Script - SWELL Resgen";
2133+
name = "SWELL Resgen";
21352134
outputPaths = (
21362135
);
21372136
runOnlyForDeploymentPostprocessing = 0;
21382137
shellPath = /bin/sh;
21392138
shellScript = "../../iPlug2/WDL/swell/swell_resgen.sh ../resources/main.rc\n";
21402139
};
2141-
4FC523AC29AB99F00011C63B /* Run Script - SWELL Resgen */ = {
2140+
4FC523AC29AB99F00011C63B /* SWELL Resgen */ = {
21422141
isa = PBXShellScriptBuildPhase;
21432142
alwaysOutOfDate = 1;
21442143
buildActionMask = 2147483647;
@@ -2148,7 +2147,7 @@
21482147
);
21492148
inputPaths = (
21502149
);
2151-
name = "Run Script - SWELL Resgen";
2150+
name = "SWELL Resgen";
21522151
outputFileListPaths = (
21532152
);
21542153
outputPaths = (
@@ -2157,25 +2156,6 @@
21572156
shellPath = /bin/sh;
21582157
shellScript = "../../iPlug2/WDL/swell/swell_resgen.sh ../resources/main.rc\n";
21592158
};
2160-
4FC523AD29AB9A280011C63B /* ShellScript */ = {
2161-
isa = PBXShellScriptBuildPhase;
2162-
alwaysOutOfDate = 1;
2163-
buildActionMask = 2147483647;
2164-
files = (
2165-
);
2166-
inputFileListPaths = (
2167-
);
2168-
inputPaths = (
2169-
);
2170-
outputFileListPaths = (
2171-
);
2172-
outputPaths = (
2173-
);
2174-
runOnlyForDeploymentPostprocessing = 0;
2175-
shellPath = /bin/sh;
2176-
shellScript = "
2177-
";
2178-
};
21792159
B87FD1EE2351C71300CF7307 /* Run Script - Update Version */ = {
21802160
isa = PBXShellScriptBuildPhase;
21812161
alwaysOutOfDate = 1;

TemplateProject/scripts/prepare_resources-mac.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
# this script will copy the project's resources (pngs, ttfs, svgs etc) to the correct place
44
# depending on the value of PLUG_SHARED_RESOURCES in config.h
5-
# resources can either be copied into the plug-in bundle or into a shared path
5+
# resources can either be copied into the plug-in bundle (vst3, component etc) or into a shared path
66
# since the shared path should be accesible from the mac app sandbox,
77
# the path used is ~/Music/SHARED_RESOURCES_SUBPATH
8+
# you might also want to consider using bin2c resources
9+
# in order to hide the resources and/or simplify this process
810

911
import os, sys, shutil
1012

0 commit comments

Comments
 (0)