Skip to content

Commit

Permalink
script to run on win or sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Wonlaw committed Oct 30, 2024
1 parent e6b1192 commit c56ad3b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocicorp/zero-sqlite3",
"version": "1.0.2",
"version": "1.0.3",
"description": "better-sqlite3 on bedrock",
"homepage": "https://github.com/rocicorp/zero-sqlite3",
"author": "Rocicorp",
Expand All @@ -10,7 +10,7 @@
},
"main": "lib/index.js",
"bin": {
"zero-sqlite3": "./shell.sh"
"zero-sqlite3": "./shell.ps1"
},
"files": [
"binding.gyp",
Expand Down
18 changes: 18 additions & 0 deletions shell.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env sh
echo --% >/dev/null;: ' | out-null
<#'


#
# sh part
#
"$(dirname "$0")/build/Release/zero_sqlite3"
# end bash part

exit #>


#
# powershell part
#
& "$PSScriptRoot\build\Release\zero_sqlite3.exe"
1 change: 0 additions & 1 deletion shell.sh

This file was deleted.

0 comments on commit c56ad3b

Please sign in to comment.