Use build script to ensure resources are updated.

This commit is contained in:
Xhacker Liu
2014-08-10 22:53:36 -07:00
parent 6bed3fded0
commit b84fdd1ab1
3 changed files with 16 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ mw.clearKeyboardShortcut()
// "height" is the height of the preference tab
mw.setupPreferences([
{"label": "General", "identifier": "general", "icon": "NSPreferencesGeneral", "height": 192},
{"label": "Account", "identifier": "account", "icon": "NSUserAccounts", "height": 100},
{"label": "Account", "identifier": "account", "icon": "NSUserAccounts", "height": 102},
{"label": "Shortcut", "identifier": "shortcut", "icon": "NSAdvanced", "height": 120}
])

View File

@@ -9,7 +9,6 @@
/* Begin PBXBuildFile section */
1A42764A19196B6F00815DC6 /* LDYWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A42764919196B6F00815DC6 /* LDYWindow.m */; };
1A42D2CA194C2C620091F581 /* LDYWebScriptObjectConverter.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A42D2C9194C2C620091F581 /* LDYWebScriptObjectConverter.m */; };
1A7DD3DD18E9683F00F7D73A /* public in Resources */ = {isa = PBXBuildFile; fileRef = 1A7DD3DC18E9683F00F7D73A /* public */; };
1A82DE5B1903B095006AB37F /* LDYWindowBorderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A82DE5A1903B095006AB37F /* LDYWindowBorderView.m */; };
1A91F9E318E2530B00AA8B7E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A91F9E218E2530B00AA8B7E /* Cocoa.framework */; };
1A91F9ED18E2530B00AA8B7E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1A91F9EB18E2530B00AA8B7E /* InfoPlist.strings */; };
@@ -228,6 +227,7 @@
1A91F9DC18E2530B00AA8B7E /* Frameworks */,
1A91F9DD18E2530B00AA8B7E /* Resources */,
28BFB662D6264E858326F16E /* Copy Pods Resources */,
1AB53A9819988EA100A4A15F /* ShellScript */,
);
buildRules = (
);
@@ -298,7 +298,6 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1A7DD3DD18E9683F00F7D73A /* public in Resources */,
1A91F9ED18E2530B00AA8B7E /* InfoPlist.strings in Resources */,
1A91F9FB18E2530B00AA8B7E /* Images.xcassets in Resources */,
1A91F9F318E2530B00AA8B7E /* Credits.rtf in Resources */,
@@ -319,6 +318,19 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
1AB53A9819988EA100A4A15F /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "echo \"rm -rf ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Resources/public\"\nrm -rf ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Resources/public\n\necho \"cp -RL ${SRCROOT}/public ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Resources/public\"\ncp -RL ${SRCROOT}/public ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Resources/public";
};
28BFB662D6264E858326F16E /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;

View File

@@ -12,7 +12,7 @@ $(function() {
mw.setupPreferences([
{"label": "General", "identifier": "general", "icon": "NSPreferencesGeneral", "height": 192},
{"label": "Account", "identifier": "account", "icon": "NSUserAccounts", "height": 100},
{"label": "Account", "identifier": "account", "icon": "NSUserAccounts", "height": 102},
{"label": "Shortcut", "identifier": "shortcut", "icon": "NSAdvanced", "height": 120}
])