feat(release): prepare 1.1.0 candidate
This commit is contained in:
parent
5a34f66981
commit
5205dcdfa9
736 changed files with 115667 additions and 12203 deletions
|
|
@ -3,14 +3,16 @@
|
|||
|
||||
import { readFileSync, existsSync } from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import credentialHelpers from '../lib/credentials.cjs';
|
||||
|
||||
const auth = Buffer.from('yunchan:ONVI2v4J#y').toString('base64');
|
||||
const { forgejoAuthorization } = credentialHelpers;
|
||||
const authorization = forgejoAuthorization();
|
||||
const EXE_PATH = 'apps/desktop/release/1.0.0/D3RO-Voice-Setup-1.0.0-x64.exe';
|
||||
|
||||
async function uploadAsset() {
|
||||
console.log('--- Fetching release ID for v1.0.0 ---');
|
||||
const relRes = await fetch('https://git.chanpaca.net/api/v1/repos/yunchan/d3ro-voice/releases/tags/v1.0.0', {
|
||||
headers: { 'Authorization': 'Basic ' + auth }
|
||||
headers: { 'Authorization': authorization }
|
||||
});
|
||||
const relData = await relRes.json();
|
||||
console.log('Release ID:', relData.id, relData.name);
|
||||
|
|
@ -29,7 +31,7 @@ async function uploadAsset() {
|
|||
const uploadRes = await fetch(`https://git.chanpaca.net/api/v1/repos/yunchan/d3ro-voice/releases/${relData.id}/assets?name=D3RO-Voice-Setup-1.0.0-x64.exe`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': 'Basic ' + auth,
|
||||
'Authorization': authorization,
|
||||
},
|
||||
body: formData
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue