@tokamakdev/platform-ios-simulator-arm64 0.1.1-beta.38 → 0.1.1-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,16 @@ else
65
65
  app_dir=$bundle/app
66
66
  fi
67
67
  icons=$input/icons/$platform
68
- icon_info_plist=$temporary/icon-info.plist
68
+ icon_info_plist=$output_parent/.tokamak/$(basename "$output").icon-info.plist
69
+
70
+ write_plist() {
71
+ plist_args=(plist --input "$input" --output "$temporary/Info.plist")
72
+ if [[ -d "$icons/AppIcon.icon" ]]; then
73
+ plist_args+=(--icon-info-plist "$icon_info_plist")
74
+ fi
75
+ "$apple_tool" "${plist_args[@]}"
76
+ cp "$temporary/Info.plist" "$contents/Info.plist"
77
+ }
69
78
 
70
79
  sign_bundle() {
71
80
  if [[ "$platform" == ios ]]; then
@@ -102,19 +111,20 @@ if [[ -f "$metadata/input-key" ]]; then
102
111
  shasum -a 256 "$plist_path"
103
112
  fi
104
113
  env | LC_ALL=C sort | sed -n '/^TOKAMAK_/p' |
105
- sed '/^TOKAMAK_IOS_TEAM_ID=/d; /^TOKAMAK_IOS_SIGNING_IDENTITY=/d; /^TOKAMAK_IOS_PROVISIONING_PROFILE=/d'
114
+ sed '/^TOKAMAK_IOS_TEAM_ID=/d; /^TOKAMAK_IOS_SIGNING_IDENTITY=/d; /^TOKAMAK_IOS_PROVISIONING_PROFILE=/d; /^TOKAMAK_IOS_BUILD_NUMBER=/d; /^TOKAMAK_MACOS_BUILD_NUMBER=/d'
106
115
  printf '%s\n' "${DEVELOPER_DIR:-}" "$PATH"
107
116
  xcodebuild -version
108
117
  } | shasum -a 256 | cut -d ' ' -f 1
109
118
  )
110
- if [[ -d "$bundle" && -f "$bundle_key_file" && $(cat "$bundle_key_file") == "$bundle_key" ]]; then
119
+ if [[ -d "$bundle" && -f "$bundle_key_file" && $(cat "$bundle_key_file") == "$bundle_key" && ( ! -d "$icons/AppIcon.icon" || -f "$icon_info_plist" ) ]]; then
120
+ write_plist
111
121
  cp "$input/app/worker-environment.json" "$app_dir/worker-environment.json"
112
122
  sign_bundle
113
123
  exit 0
114
124
  fi
115
125
  fi
116
126
 
117
- rm -f "$bundle_key_file"
127
+ rm -f "$bundle_key_file" "$icon_info_plist"
118
128
  rm -rf "$bundle"
119
129
  mkdir -p "$executable_dir" "$app_dir" "$module_cache"
120
130
  cp -R "$input/app/." "$app_dir/"
@@ -206,11 +216,7 @@ done
206
216
  xcrun --sdk "$sdk" swiftc "${swift_args[@]}" -o "$executable_dir/$app_slug"
207
217
  xcrun --sdk "$sdk" strip "$executable_dir/$app_slug"
208
218
 
209
- plist_args=(plist --input "$input" --output "$contents/Info.plist")
210
- if [[ -f "$icon_info_plist" ]]; then
211
- plist_args+=(--icon-info-plist "$icon_info_plist")
212
- fi
213
- "$apple_tool" "${plist_args[@]}"
219
+ write_plist
214
220
 
215
221
  sign_bundle
216
222
  if [[ -n "${bundle_key:-}" ]]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokamakdev/platform-ios-simulator-arm64",
3
- "version": "0.1.1-beta.38",
3
+ "version": "0.1.1-beta.40",
4
4
  "description": "The tokamak platform pack for ios-simulator-arm64",
5
5
  "repository": {
6
6
  "type": "git",