Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
7475510b
Unverified
Commit
7475510b
authored
Jan 26, 2021
by
Jenn Magder
Committed by
GitHub
Jan 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused deploy_gallery.sh (#74675)
parent
2b631811
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
79 deletions
+0
-79
deploy_gallery.sh
dev/bots/deploy_gallery.sh
+0
-79
No files found.
dev/bots/deploy_gallery.sh
deleted
100755 → 0
View file @
2b631811
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set
-e
function
script_location
()
{
local
script_location
=
"
${
BASH_SOURCE
[0]
}
"
# Resolve symlinks
while
[[
-h
"
$script_location
"
]]
;
do
DIR
=
"
$(
cd
-P
"
$(
dirname
"
$script_location
"
)
"
>
/dev/null
&&
pwd
)
"
script_location
=
"
$(
readlink
"
$script_location
"
)
"
[[
"
$script_location
"
!=
/
*
]]
&&
script_location
=
"
$DIR
/
$script_location
"
done
echo
"
$(
cd
-P
"
$(
dirname
"
$script_location
"
)
"
>
/dev/null
&&
pwd
)
"
}
# So that users can run this script locally from any directory and it will work as
# expected.
SCRIPT_LOCATION
=
"
$(
script_location
)
"
FLUTTER_ROOT
=
"
$(
dirname
"
$(
dirname
"
$SCRIPT_LOCATION
"
)
"
)
"
export
PATH
=
"
$FLUTTER_ROOT
/bin:
$FLUTTER_ROOT
/bin/cache/dart-sdk/bin:
$PATH
"
set
-x
cd
"
$FLUTTER_ROOT
"
version
=
"
$(
<version
)
"
if
[[
"
$OS
"
==
"linux"
]]
;
then
echo
"Building Flutter Gallery
$version
for Android..."
export
BUNDLE_GEMFILE
=
"
$FLUTTER_ROOT
/dev/ci/docker_linux/Gemfile"
# ANDROID_SDK_ROOT must be set in the env.
(
cd
dev/integration_tests/flutter_gallery
flutter build apk
--release
-t
lib/main_publish.dart
)
elif
[[
"
$OS
"
==
"darwin"
]]
;
then
echo
"Building Flutter Gallery
$version
for iOS..."
export
BUNDLE_GEMFILE
=
"
$FLUTTER_ROOT
/dev/ci/mac/Gemfile"
(
cd
dev/integration_tests/flutter_gallery
flutter build ios
--release
--no-codesign
-t
lib/main_publish.dart
# flutter build ios will run CocoaPods script. Check generated locations.
if
[[
!
-d
"ios/Pods"
]]
;
then
echo
"Error: pod install failed to setup plugins"
exit
1
fi
if
[[
!
-d
"ios/.symlinks/plugins"
]]
;
then
echo
"Error: pod install failed to setup plugin symlinks"
exit
1
fi
if
[[
-d
"ios/.symlinks/flutter"
]]
;
then
echo
"Error: pod install created flutter symlink"
exit
1
fi
if
[[
!
-d
"build/ios/iphoneos/Flutter Gallery.app/Frameworks/App.framework/flutter_assets"
]]
;
then
echo
"Error: flutter_assets not assembled"
exit
1
fi
if
[[
-d
"build/ios/iphoneos/Flutter Gallery.app/Frameworks/App.framework/flutter_assets/isolate_snapshot_data"
||
-d
"build/ios/iphoneos/Flutter Gallery.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin"
||
-d
"build/ios/iphoneos/Flutter Gallery.app/Frameworks/App.framework/flutter_assets/vm_snapshot_data"
]]
;
then
echo
"Error: compiled debug version of app with --release flag"
exit
1
fi
)
else
echo
"Unknown OS:
$OS
"
echo
"Aborted."
exit
1
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment