| 1492 | | shellScript = "#!/bin/sh\n\nOLD_VERSION=$(cat .version)\nVERSION=$(expr $OLD_VERSION + 1)\n\nOLD_STRING=$(printf \"%x\" $OLD_VERSION|tr \"[:lower:]\" \"[:upper:]\")\nSTRING=$(printf \"%x\" $VERSION|tr \"[:lower:]\" \"[:upper:]\")\n\ncp \"build/$TARGET_NAME.app/Contents/Info.plist\" .Info.plist\n\ncat .Info.plist | sed -e \"s,CFBundleVersionKey,$STRING,\" | sed -e \"s,<string>$OLD_STRING</string>,<string>$STRING</string>,\" > \"build/$TARGET_NAME.app/Contents/Info.plist\"\n\nrm -f \"build/$TARGET_NAME build $OLD_STRING.app\" .Info.plist\nln -sf \"$TARGET_NAME.app\" \"build/$TARGET_NAME build $STRING.app\"\n\necho \"$VERSION\" > .version\n\nexit 0"; |
|---|
| | 1492 | shellScript = "#!/bin/sh\n\ntouch \"$SRCROOT/.version\"\nOLD_VERSION=$(cat \"$SRCROOT/.version\")\n\nif [ -z \"$OLD_VERSION\" ]; then\n\tOLD_VERSION=\"0\"\nfi\n\nVERSION=$(expr $OLD_VERSION + 1)\n\nOLD_STRING=$(printf \"%x\" $OLD_VERSION | tr \"[:lower:]\" \"[:upper:]\")\nSTRING=$(printf \"%x\" $VERSION | tr \"[:lower:]\" \"[:upper:]\")\n\ncp \"$BUILD_DIR/$WRAPPER_NAME/Contents/Info.plist\" .Info.plist\n\ncat .Info.plist | sed -e \"s,CFBundleVersionKey,$STRING,\" | sed -e \"s,<string>$OLD_STRING</string>,<string>$STRING</string>,\" > \"$BUILD_DIR/$WRAPPER_NAME/Contents/Info.plist\"\n\nrm -rf \"$BUILD_DIR/$EXECUTABLE_NAME build $OLD_STRING.$WRAPPER_EXTENSION\" .Info.plist\nln -sf \"$BUILD_DIR/$WRAPPER_NAME\" \"$BUILD_DIR/$EXECUTABLE_NAME build $STRING.$WRAPPER_EXTENSION\"\n\necho \"$VERSION\" > $SRCROOT/.version\n\nexit 0\n"; |
|---|