Skip to content

Commit bd58848

Browse files
committed
Update deployment for watchOS starter project.
1 parent 405f34b commit bd58848

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Rakefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,19 @@ namespace :package do
222222
File.join(script_folder, 'ParseStarterProject', 'watchOS', 'ParseStarterProject-Swift')
223223
]
224224
watchos_framework_archive = File.join(release_folder, package_watchos_name)
225-
make_starter_package(release_folder, watchos_starters, watchos_framework_archive, package_starter_watchos_name)
225+
watchos_starters.each do |project_path|
226+
`git clean -xfd #{project_path}`
227+
`mkdir -p #{project_path}/Frameworks/iOS && mkdir -p #{project_path}/Frameworks/watchOS`
228+
`cd #{project_path}/Frameworks/iOS && unzip -o #{ios_framework_archive}`
229+
`cd #{project_path}/Frameworks/watchOS && unzip -o #{watchos_framework_archive}`
230+
xcodeproj_path = Dir.glob(File.join(project_path, '*.xcodeproj'))[0]
231+
prepare_xcodeproj(xcodeproj_path)
232+
end
233+
make_package(release_folder, watchos_starters, package_starter_watchos_name)
234+
watchos_starters.each do |project_path|
235+
`git clean -xfd #{project_path}`
236+
`git checkout #{project_path}`
237+
end
226238
end
227239

228240
def make_package(target_path, items, archive_name)

0 commit comments

Comments
 (0)