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
0b23634f
Unverified
Commit
0b23634f
authored
Aug 28, 2019
by
Michael Goderbauer
Committed by
GitHub
Aug 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not hide .git in zip for Windows (#39432)
parent
cb965495
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
prepare_package.dart
dev/bots/prepare_package.dart
+6
-1
prepare_package_test.dart
dev/bots/test/prepare_package_test.dart
+3
-0
No files found.
dev/bots/prepare_package.dart
View file @
0b23634f
...
...
@@ -414,9 +414,14 @@ class ArchiveCreator {
}
/// Create a zip archive from the directory source.
Future
<
String
>
_createZipArchive
(
File
output
,
Directory
source
)
{
Future
<
String
>
_createZipArchive
(
File
output
,
Directory
source
)
async
{
List
<
String
>
commandLine
;
if
(
platform
.
isWindows
)
{
// Unhide the .git folder, https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/attrib.
await
_processRunner
.
runProcess
(
<
String
>[
'attrib'
,
'-h'
,
'.git'
],
workingDirectory:
Directory
(
source
.
absolute
.
path
),
);
commandLine
=
<
String
>[
'7za'
,
'a'
,
...
...
dev/bots/test/prepare_package_test.dart
View file @
0b23634f
...
...
@@ -122,6 +122,7 @@ void main() {
'
$flutter
create --template=package
${createBase}
package'
:
null
,
'
$flutter
create --template=plugin
${createBase}
plugin'
:
null
,
'git clean -f -X **/.packages'
:
null
,
if
(
platform
.
isWindows
)
'attrib -h .git'
:
null
,
if
(
platform
.
isWindows
)
'7za a -tzip -mx=9
$archiveName
flutter'
:
null
else
if
(
platform
.
isMacOS
)
'zip -r -9
$archiveName
flutter'
:
null
else
if
(
platform
.
isLinux
)
'tar cJf
$archiveName
flutter'
:
null
,
...
...
@@ -156,6 +157,7 @@ void main() {
'
$flutter
create --template=package
${createBase}
package'
:
null
,
'
$flutter
create --template=plugin
${createBase}
plugin'
:
null
,
'git clean -f -X **/.packages'
:
null
,
if
(
platform
.
isWindows
)
'attrib -h .git'
:
null
,
if
(
platform
.
isWindows
)
'7za a -tzip -mx=9
$archiveName
flutter'
:
null
else
if
(
platform
.
isMacOS
)
'zip -r -9
$archiveName
flutter'
:
null
else
if
(
platform
.
isLinux
)
'tar cJf
$archiveName
flutter'
:
null
,
...
...
@@ -205,6 +207,7 @@ void main() {
'
$flutter
create --template=package
${createBase}
package'
:
null
,
'
$flutter
create --template=plugin
${createBase}
plugin'
:
null
,
'git clean -f -X **/.packages'
:
null
,
if
(
platform
.
isWindows
)
'attrib -h .git'
:
null
,
if
(
platform
.
isWindows
)
'7za a -tzip -mx=9
$archiveName
flutter'
:
null
else
if
(
platform
.
isMacOS
)
'zip -r -9
$archiveName
flutter'
:
null
else
if
(
platform
.
isLinux
)
'tar cJf
$archiveName
flutter'
:
null
,
...
...
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