From 446cb846c3ec056a703ed7a84f6f80d8b35d74bd Mon Sep 17 00:00:00 2001 From: Martin Lepadusch Date: Wed, 2 Nov 2016 21:01:47 +0100 Subject: [PATCH] Fixes for the windows archives (#22) * add file extension for windows executables * fix comments --- package/dart-sass.bat | 12 ++++++------ tool/grind.dart | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package/dart-sass.bat b/package/dart-sass.bat index 85d7deb37..6f8ba025c 100644 --- a/package/dart-sass.bat +++ b/package/dart-sass.bat @@ -1,11 +1,11 @@ @echo off -%REM Copyright 2016 Google Inc. Use of this source code is governed by an -%REM MIT-style license that can be found in the LICENSE file or at -%REM https://opensource.org/licenses/MIT. +REM Copyright 2016 Google Inc. Use of this source code is governed by an +REM MIT-style license that can be found in the LICENSE file or at +REM https://opensource.org/licenses/MIT. -%REM This script drives the standalone Sass package, which bundles together a -%REM Dart executable and a snapshot of Sass. It can be created with `pub run -%REM grinder package`. +REM This script drives the standalone Sass package, which bundles together a +REM Dart executable and a snapshot of Sass. It can be created with `pub run +REM grinder package`. set SCRIPTPATH=%~dp0 set arguments=%* diff --git a/tool/grind.dart b/tool/grind.dart index 67dff84bd..f7d4c16fb 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -116,7 +116,9 @@ Future _buildPackage(http.Client client, String os, String architecture) async { var sassLicense = new File('LICENSE').readAsBytesSync(); var dartLicense = new File(p.join(_sdkDir, 'LICENSE')).readAsBytesSync(); var archive = new Archive() - ..addFile(_file("dart-sass/src/dart", executable, executable: true)) + ..addFile(_file( + "dart-sass/src/dart${os == 'windows' ? '.exe' : ''}", executable, + executable: true)) ..addFile(_file("dart-sass/src/DART_LICENSE", dartLicense)) ..addFile(_file("dart-sass/src/sass.dart.snapshot", snapshot)) ..addFile(_file("dart-sass/src/SASS_LICENSE", sassLicense))