Skip to content

Commit

Permalink
Merge branch 'master' of github.com:botpress/messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmasse committed Jul 7, 2021
2 parents f732bc6 + fa1905e commit 2270e4a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ const package = async () => {
const version = require(path.join(__dirname, '../package.json')).version.replace(/\./g, '_')

try {
const platforms = ['darwin', 'win32', 'linux']
for (const platform of platforms) {
await execute(
`./node_modules/.bin/node-pre-gyp install --directory=./node_modules/sqlite3 --target_platform=${platform} --target_arch=x64`,
undefined,
{ silent: true }
)
}

await execute('cross-env pkg package.json', undefined, { silent: true })

await fse.rename('./bin/messaging-win.exe', `./bin/messaging-v${version}-win-x64.exe`)
Expand Down

0 comments on commit 2270e4a

Please sign in to comment.