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
76964621
Commit
76964621
authored
Feb 14, 2017
by
Michael Goderbauer
Committed by
GitHub
Feb 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add git config option to automatically convert CRLF to LF (#8122)
parent
f903a1c8
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
233 additions
and
208 deletions
+233
-208
.gitattributes
.gitattributes
+25
-0
update_dart_sdk.ps1
bin/internal/update_dart_sdk.ps1
+40
-40
VERSION_WIN_SDK
dev/bots/VERSION_WIN_SDK
+1
-1
test.dart
dev/bots/test.dart
+167
-167
No files found.
.gitattributes
0 → 100644
View file @
76964621
# Auto detect text files and perform LF normalization
* text=auto
# Always perform LF normalization on these files
*.dart text
*.gradle text
*.html text
*.java text
*.json text
*.md text
*.py text
*.sh text
*.txt text
*.xml text
*.yaml text
# Make sure that these Windows files always have CRLF line endings in checkout
*.bat text eol=crlf
*.ps1 text eol=crlf
# Never perform LF normalization on these files
*.ico binary
*.jar binary
*.png binary
*.zip binary
bin/internal/update_dart_sdk.ps1
View file @
76964621
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# ---------------------------------- NOTE ---------------------------------- #
#
# Please keep the logic in this file consistent with the logic in the
# `update_dart_sdk.sh` script in the same directory to ensure that Flutter
# continues to work across all platforms!
#
# -------------------------------------------------------------------------- #
$ErrorActionPreference
=
"Stop"
$progName
=
split-path
-parent
$MyInvocation
.MyCommand.Definition
$flutterRoot
=
(
get-item
$progName
)
.parent.parent.FullName
$dartSdkPath
=
"
$flutterRoot
\bin\cache\dart-sdk"
$dartSdkStampPath
=
"
$flutterRoot
\bin\cache\dart-sdk.stamp"
$dartSdkVersion
=
(
Get-Content
"
$flutterRoot
\bin\internal\dart-sdk.version"
)
if
((
Test-Path
$dartSdkStampPath
)
-and
(
$dartSdkVersion
-eq
(
Get-Content
$dartSdkStampPath
)))
{
return
}
Write-Host
"Downloading Dart SDK
$dartSdkVersion
..."
$dartZipName
=
"dartsdk-windows-x64-release.zip"
$dartChannel
=
if
(
$dartSdkVersion
.Contains
(
"-dev."
))
{
"dev"
}
else
{
"stable"
}
$dartSdkUrl
=
"https://storage.googleapis.com/dart-archive/channels/
$dartChannel
/raw/
$dartSdkVersion
/sdk/
$dartZipName
"
if
(
Test-Path
$dartSdkPath
)
{
Remove-Item
$dartSdkPath
-Recurse
}
New-Item
$dartSdkPath
-force -type directory | Out-Null
$dartSdkZip
=
"
$flutterRoot
\bin\cache\dart-sdk.zip"
Start-BitsTransfer
-Source
$dartSdkUrl
-Destination
$dartSdkZip
Add-Type
-assembly
"system.io.compression.filesystem"
[
io.compression.zipfile]::ExtractToDirectory
(
$dartSdkZip
,
"
$flutterRoot
\bin\cache"
)
Remove-Item
$dartSdkZip
$dartSdkVersion
|
out-file
$dartSdkStampPath
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# ---------------------------------- NOTE ---------------------------------- #
#
# Please keep the logic in this file consistent with the logic in the
# `update_dart_sdk.sh` script in the same directory to ensure that Flutter
# continues to work across all platforms!
#
# -------------------------------------------------------------------------- #
$ErrorActionPreference
=
"Stop"
$progName
=
split-path
-parent
$MyInvocation
.MyCommand.Definition
$flutterRoot
=
(
get-item
$progName
)
.parent.parent.FullName
$dartSdkPath
=
"
$flutterRoot
\bin\cache\dart-sdk"
$dartSdkStampPath
=
"
$flutterRoot
\bin\cache\dart-sdk.stamp"
$dartSdkVersion
=
(
Get-Content
"
$flutterRoot
\bin\internal\dart-sdk.version"
)
if
((
Test-Path
$dartSdkStampPath
)
-and
(
$dartSdkVersion
-eq
(
Get-Content
$dartSdkStampPath
)))
{
return
}
Write-Host
"Downloading Dart SDK
$dartSdkVersion
..."
$dartZipName
=
"dartsdk-windows-x64-release.zip"
$dartChannel
=
if
(
$dartSdkVersion
.Contains
(
"-dev."
))
{
"dev"
}
else
{
"stable"
}
$dartSdkUrl
=
"https://storage.googleapis.com/dart-archive/channels/
$dartChannel
/raw/
$dartSdkVersion
/sdk/
$dartZipName
"
if
(
Test-Path
$dartSdkPath
)
{
Remove-Item
$dartSdkPath
-Recurse
}
New-Item
$dartSdkPath
-force -type directory | Out-Null
$dartSdkZip
=
"
$flutterRoot
\bin\cache\dart-sdk.zip"
Start-BitsTransfer
-Source
$dartSdkUrl
-Destination
$dartSdkZip
Add-Type
-assembly
"system.io.compression.filesystem"
[
io.compression.zipfile]::ExtractToDirectory
(
$dartSdkZip
,
"
$flutterRoot
\bin\cache"
)
Remove-Item
$dartSdkZip
$dartSdkVersion
|
out-file
$dartSdkStampPath
dev/bots/VERSION_WIN_SDK
View file @
76964621
e5715e2cc0d5644a241a4b3281bfada92bc145c2
e5715e2cc0d5644a241a4b3281bfada92bc145c2
dev/bots/test.dart
View file @
76964621
This diff is collapsed.
Click to expand it.
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