From 6ff4f480ac456eac41f4bd79e5b09f5b40128f08 Mon Sep 17 00:00:00 2001 From: TheOneWithTheBraid Date: Tue, 3 Jan 2023 07:32:59 +0100 Subject: [PATCH] fix: permission of web builds Signed-off-by: TheOneWithTheBraid --- .gitignore | 2 -- .gitlab-ci.yml | 3 ++- scripts/build-web.sh | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 997bbbef..1245e194 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ .buildlog/ .history .svn/ -lib/generated_plugin_registrant.dart prime # libolm package @@ -38,7 +37,6 @@ prime /build/ # Web related -lib/generated_plugin_registrant.dart docs/build/ docs/.jekyll-cache/ docs/_site/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4aab8540..0f0e58e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -339,7 +339,8 @@ upload_android: upload_web: extends: .release script: - - tar czf package.tar.gz -C build/web/ . + # workaround bug of Flutter engine + - tar czf package.tar.gz --ignore-failed-read -C build/web/ . - | curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file package.tar.gz ${PACKAGE_REGISTRY_URL}/fluffychat-web.tar.gz diff --git a/scripts/build-web.sh b/scripts/build-web.sh index a136aeea..8be903b7 100755 --- a/scripts/build-web.sh +++ b/scripts/build-web.sh @@ -3,3 +3,5 @@ flutter config --enable-web flutter clean flutter pub get flutter build web --release --verbose --source-maps +# bug of the Flutter engine +chmod +r -R build/web \ No newline at end of file