Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
chore: update web
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Nov 10, 2021
1 parent b46af58 commit c1e905e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions scripts/fix-mac-zip.js
Expand Up @@ -32,7 +32,7 @@ function exec(command) {
async function getBlockMapInfo(fileName) {
return JSON.parse(
await exec(
'./node_modules/app-builder-bin/mac/app-builder blockmap' +
'./node_modules/app-builder-bin/mac/app-builder_amd64 blockmap' +
` -i ${fileName}` +
` -o ${os.tmpdir()}/a.zip`
)
Expand All @@ -44,7 +44,7 @@ async function getBlockMapInfo(fileName) {
const { version } = JSON.parse(
await fs.promises.readFile('app/package.json')
);
const zipName = `standard-notes-${version}-mac.zip`;
const zipName = `standard-notes-${version}-mac-x64.zip`;
const zipPath = `dist/${zipName}`;
console.log(`Removing ${zipPath}`);
await fs.promises.unlink(zipPath);
Expand All @@ -61,7 +61,7 @@ async function getBlockMapInfo(fileName) {

const [blockMapInfo, latestVersionInfo] = await Promise.all([
getBlockMapInfo(zipPath),
fs.promises.readFile('dist/latest-mac.yml').then(yaml.safeLoad),
fs.promises.readFile('dist/latest-mac.yml').then(yaml.load),
]);
const index = latestVersionInfo.files.findIndex(
(file) => file.url === zipName
Expand All @@ -77,7 +77,7 @@ async function getBlockMapInfo(fileName) {
);
await fs.promises.writeFile(
'dist/latest-mac.yml',
yaml.safeDump(latestVersionInfo, {
yaml.dump(latestVersionInfo, {
lineWidth: Infinity,
}),
'utf8'
Expand Down
2 changes: 1 addition & 1 deletion web
Submodule web updated from 73b91e to 716e1c

0 comments on commit c1e905e

Please sign in to comment.