Skip to content

Commit ada8225

Browse files
author
Matthew Wonlaw
committed
script to run on win or sh
1 parent e6b1192 commit ada8225

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocicorp/zero-sqlite3",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "better-sqlite3 on bedrock",
55
"homepage": "https://github.com/rocicorp/zero-sqlite3",
66
"author": "Rocicorp",
@@ -10,7 +10,7 @@
1010
},
1111
"main": "lib/index.js",
1212
"bin": {
13-
"zero-sqlite3": "./shell.sh"
13+
"zero-sqlite3": "./shell.ps1"
1414
},
1515
"files": [
1616
"binding.gyp",

shell.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env sh
2+
echo --% >/dev/null;: ' | out-null
3+
<#'
4+
5+
6+
#
7+
# sh part
8+
#
9+
"$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/build/Release/zero_sqlite3"
10+
# end bash part
11+
12+
exit #>
13+
14+
15+
#
16+
# powershell part
17+
#
18+
$scriptDir = (Get-Item -Path $MyInvocation.MyCommand.Definition).DirectoryName
19+
& (Join-Path $scriptDir "build" "Release" "zero_sqlite3.exe")
20+

shell.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)