Skip to content

Commit bd2424f

Browse files
WonyoungChoiswift-kim
authored andcommitted
Re-organize engine artifacts (#128)
* Re-organize engine artifacts The artifacts will be: - tizen-common.zip - tizen-x86-debug.zip - tizen-arm-debug.zip - tizen-arm-profile.zip - tizen-arm-release.zip - tizen-arm64-debug.zip - tizen-arm64-profile.zip - tizen-arm64.release.zip The `gen-snapshot(.exe)` is not included in the generated artifacts. It will be downloaded from the android's artifacts repository by flutter-tizen. * Remove upstreamVersion variable
1 parent 36a75b3 commit bd2424f

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

azure-pipelines.yml

+7-16
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ jobs:
8484
OUTDIR=$(Build.StagingDirectory)
8585
cp out/linux_$(mode)_$(arch)/libflutter_*.so $OUTDIR
8686
if [[ $(System.JobName) == "tizen-arm-release" ]]; then
87-
mkdir $OUTDIR/common
88-
cp -r out/linux_$(mode)_$(arch)/{cpp_client_wrapper,icu,public} $OUTDIR/common
89-
rm $OUTDIR/common/cpp_client_wrapper/engine_method_result.cc
87+
mkdir $OUTDIR/tizen-common
88+
cp -r out/linux_$(mode)_$(arch)/{cpp_client_wrapper,icu,public} $OUTDIR/tizen-common
89+
rm $OUTDIR/tizen-common/cpp_client_wrapper/engine_method_result.cc
9090
fi
9191
displayName: Copy artifacts
9292
workingDirectory: $(Pipeline.Workspace)/src
@@ -100,25 +100,16 @@ jobs:
100100
demands: agent.os -equals Linux
101101
workspace:
102102
clean: outputs
103-
variables:
104-
- name: upstreamVersion
105-
value: 0fdb562ac8068ce3dda6b69aca3f355f4d1d2718
106103
steps:
107104
- checkout: self
108105
path: src/flutter
109106
- download: current
110107
- bash: |
111-
mv $(Pipeline.Workspace)/tizen-arm-release/common .
108+
mv $(Pipeline.Workspace)/tizen-arm-release/tizen-common .
112109
mv $(Pipeline.Workspace)/tizen-* .
113-
for platform in linux windows darwin; do
114-
for arch in arm arm64; do
115-
for mode in release profile; do
116-
curl -o tmp.zip https://storage.googleapis.com/flutter_infra/flutter/$(upstreamVersion)/android-$arch-$mode/$platform-x64.zip 2> /dev/null
117-
unzip tmp.zip -d tizen-$arch-$mode/$platform-x64 && rm tmp.zip
118-
done
119-
zip -r $(Build.StagingDirectory)/$platform-x64.zip *
120-
rm -r tizen-$arch-*/$platform-x64
121-
done
110+
for x in $(ls -d1 tizen-*); do
111+
echo "Archiving $x.zip..."
112+
(cd $x; zip -rq $(Build.StagingDirectory)/$x.zip *)
122113
done
123114
displayName: Create releases
124115
workingDirectory: $(Build.BinariesDirectory)

0 commit comments

Comments
 (0)