Skip to content

Commit

Permalink
Fixes for the windows archives (#22)
Browse files Browse the repository at this point in the history
* add file extension for windows executables

* fix comments
  • Loading branch information
m4r71n authored and nex3 committed Nov 2, 2016
1 parent e0fd5ea commit 446cb84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions package/dart-sass.bat
Original file line number Diff line number Diff line change
@@ -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=%*
Expand Down
4 changes: 3 additions & 1 deletion tool/grind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 446cb84

Please sign in to comment.