mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
adjust scripts to new location of deltachat-core-rust adjust dc-node readme to repo change mention old repository migrate github actions, try out if they work fix path to node docs in SSH github action passing mailadm token to node tests hopefully fixing the download paths for the artifacts fixing download paths, this time for real post upload link to details fix scp command forgot to remove platform_status dict fixing paths in the github action add github action to delete node preview builds when PR is closed move environment variable to yaml remove git trash github action to release to npm use different action which also works with branches for testing we don't want to publish to NPM through the CI see what lint issues windows has
23 lines
830 B
JavaScript
23 lines
830 B
JavaScript
const {execSync} = require('child_process')
|
|
const {existsSync} = require('fs')
|
|
const {join} = require('path')
|
|
|
|
const run = (cmd) => {
|
|
console.log('[i] running `' + cmd + '`')
|
|
execSync(cmd, {stdio: 'inherit'})
|
|
}
|
|
|
|
// Build bindings
|
|
if (process.env.USE_SYSTEM_LIBDELTACHAT === 'true') {
|
|
console.log('[i] USE_SYSTEM_LIBDELTACHAT is true, rebuilding c bindings and using pkg-config to retrieve lib paths and cflags of libdeltachat')
|
|
run('npm run build:bindings:c:c')
|
|
} else {
|
|
console.log('[i] Building rust core & c bindings, if possible use prebuilds')
|
|
run('npm run install:prebuilds')
|
|
}
|
|
|
|
if (!existsSync(join(__dirname, '..', 'dist'))) {
|
|
console.log('[i] Didn\'t find already built typescript bindings. Trying to transpile them. If this fail, make sure typescript is installed ;)')
|
|
run('npm run build:bindings:ts')
|
|
}
|