Tag: Xcode/Tips
~/Library/Developer/Xcode/DerivedData/プロジェクト名以下に出力される。
set -ex [ "$ACTION" = build ] || exit 0 [ "$BUILD_VARIANTS" = "normal" ] || exit 0 [ "$CONFIGURATION" = "Release" ] || exit 0 dir="$TEMP_FILES_DIR/disk" dmg="$HOME/Desktop/$PROJECT_NAME.dmg" rm -rf "$dir" mkdir "$dir" cp -R "$BUILT_PRODUCTS_DIR/$PROJECT_NAME.app" "$dir" cp -R "$PROJECT_DIR/README.txt" "$dir" cp -R "$PROJECT_DIR/LICENSE.txt" "$dir" ln -s "/Applications" "$dir/Applications" rm -f "$dmg" hdiutil create -srcfolder "$dir" -volname "$PROJECT_NAME" "$dmg" rm -rf "$dir"