mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 00:02:28 +00:00
ci: record package releases in simplex-chat-libs (#7719)
* ci: use default registries for empty variables * ci: drop package publish tags * ci: record releases in simplex-chat-libs * ci: skip recorded versions in publish plan * nodejs: raise default test timeout for migrations * nodejs: print download progress without console.error * nodejs: use the default timeout in migrating core tests
This commit is contained in:
7 files changed
+445
-95
No files matched your search
@@ -111,7 +111,7 @@ export async function resolveAddonPath(
|
||||
|
||||
export function installLibs(url: string, sha256: string, target: string, lib: string, timeoutMs: number = REQUEST_TIMEOUT_MS): Promise<void> {
|
||||
return inTempDir(target, async tmp => {
|
||||
console.error(`Downloading libsimplex from ${url} ...`)
|
||||
process.stderr.write(`Downloading libsimplex from ${url} ...\n`)
|
||||
const zipPath = path.join(tmp, "libs.zip")
|
||||
await download(url, zipPath, timeoutMs)
|
||||
await verifySha256(zipPath, sha256, url)
|
||||
@@ -124,7 +124,7 @@ export function installLibs(url: string, sha256: string, target: string, lib: st
|
||||
|
||||
export function installAddon(url: string, sha256: string, target: string, timeoutMs: number = REQUEST_TIMEOUT_MS): Promise<void> {
|
||||
return inTempDir(target, async tmp => {
|
||||
console.error(`Downloading the Node.js add-on from ${url} ...`)
|
||||
process.stderr.write(`Downloading the Node.js add-on from ${url} ...\n`)
|
||||
const file = path.join(tmp, path.basename(target))
|
||||
await download(url, file, timeoutMs)
|
||||
await verifySha256(file, sha256, url)
|
||||
|
||||
Reference in new issue
Block a user