diff --git a/scripts/compile.ts b/scripts/compile.ts index 177dded..808ed69 100644 --- a/scripts/compile.ts +++ b/scripts/compile.ts @@ -9,7 +9,7 @@ function $ (command: string) { const { default: { version } } = await import('../package.json', { with: { type: "json" } }) export async function compile () { - const archs = ['x86_64-unknown-linux-gnu', 'aarch64-unknown-linux-gnu', 'x86_64-pc-windows-msvc', 'x86_64-apple-darwin', 'aarch64-apple-darwin'] + const archs = ['x86_64-unknown-linux-gnu', 'x86_64-pc-windows-msvc', 'x86_64-apple-darwin', 'aarch64-apple-darwin'] for (const arch of archs) { const dir = `./dist/tmp/${arch}` const bin = arch.includes('windows') ? 'chel.exe' : 'chel' diff --git a/src/upload.ts b/src/upload.ts index 8a9fdea..3e29c7d 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -31,7 +31,7 @@ function uploadEntryToURL ([cid, buffer]: Entry, url: string): Promise { const form = new FormData() form.append('hash', cid) form.append('data', new Blob([buffer])) - return fetch(`${url}/file`, { method: 'POST', body: form }) + return fetch(`${url}/dev-file`, { method: 'POST', body: form }) .then(handleFetchResult('text')) .then(r => { if (r !== `/file/${cid}`) {