Fix windows builds

This commit is contained in:
Fedor Indutnyy 2022-12-14 11:32:04 -08:00
parent c821d92663
commit ce2676e8d8
3 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@ -42,4 +42,5 @@ TODO
.local
# Downloaded artifact
deps/unverified.tmp
deps/sqlcipher.tar.gz

5
deps/download.js vendored
View File

@ -2,7 +2,6 @@ const https = require('https');
const fs = require('fs');
const path = require('path');
const crypto = require('crypto');
const os = require('os');
const { Transform } = require('stream');
const { pipeline } = require('stream/promises');
@ -13,9 +12,7 @@ const OPENSSL_VERSION = '3.0.7';
const URL = `${BASE_URI}/sqlcipher-${SQLCIPHER_VERSION}--${OPENSSL_VERSION}-` +
`${HASH}.tar.gz`;
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'better-sqlite3-'));
const tmpFile = path.join(tmpDir, 'unverified.tmp');
const tmpFile = path.join(__dirname, 'unverified.tmp');
const finalFile = path.join(__dirname, 'sqlcipher.tar.gz');
async function main() {

View File

@ -16,7 +16,8 @@
"src/*.[ch]pp",
"lib/**",
"deps/**",
"!deps/sqlcipher.tar.gz"
"!deps/sqlcipher.tar.gz",
"!deps/unverified.tmp"
],
"dependencies": {
"bindings": "^1.5.0",