|
|
@ -175,6 +175,8 @@ async function main() { |
|
|
|
const mac = fs.readFileSync(path.join(__dirname, '../../../release', 'latest-mac.yml'), 'utf8') |
|
|
|
const mac = fs.readFileSync(path.join(__dirname, '../../../release', 'latest-mac.yml'), 'utf8') |
|
|
|
const parsedMacArm64 = YAML.parse(macArm64) |
|
|
|
const parsedMacArm64 = YAML.parse(macArm64) |
|
|
|
const parsedMac = YAML.parse(mac) |
|
|
|
const parsedMac = YAML.parse(mac) |
|
|
|
|
|
|
|
console.log(parsedMacArm64) |
|
|
|
|
|
|
|
console.log(parsedMac) |
|
|
|
const combined = { |
|
|
|
const combined = { |
|
|
|
...parsedMac, |
|
|
|
...parsedMac, |
|
|
|
files: { |
|
|
|
files: { |
|
|
@ -184,9 +186,9 @@ async function main() { |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(combined) |
|
|
|
console.log(combined) |
|
|
|
const newYml = YAML.stringify(combined) |
|
|
|
const newYml = YAML.stringify(combined) |
|
|
|
fs.writeFileSync(path.join(__dirname, '../../../release', 'latest-mac.yml'), newYml) |
|
|
|
//fs.writeFileSync(path.join(__dirname, '../../../release', 'latest-mac.yml'), newYml)
|
|
|
|
// remove the arm64 file
|
|
|
|
// remove the arm64 file
|
|
|
|
fs.unlinkSync(path.join(__dirname, '../../../release', 'latest-mac-arm64.yml')) |
|
|
|
// fs.unlinkSync(path.join(__dirname, '../../../release', 'latest-mac-arm64.yml'))
|
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
console.log(e) |
|
|
|
console.log(e) |
|
|
|