diff --git a/README.md b/README.md index 1df8414..94002ab 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,6 @@ An Electron application with Vue -## Recommended IDE Setup - -- [VSCode](https://code.visualstudio.com/) + [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) - ## Project Setup ### Install diff --git a/bin/uploadArtifacts.js b/bin/uploadArtifacts.js index 48ea419..2bb5094 100644 --- a/bin/uploadArtifacts.js +++ b/bin/uploadArtifacts.js @@ -71,6 +71,23 @@ const uploadFile = async (filePath, platform, version) => { ) } +const uploadFileToRoot = async (filePath, platform) => { + const fileStream = fs.createReadStream(filePath) + const fileName = path.basename(filePath) + const key = `${platform}/${fileName}` + + console.log(`Uploading ${fileName} → ${key} (latest)`) + + await client.send( + new PutObjectCommand({ + Bucket: BUCKET, + Key: key, + Body: fileStream, + ContentType: getContentType(fileName), + }), + ) +} + const main = async () => { const platform = process.argv[2] const version = process.argv[3] @@ -128,7 +145,13 @@ const main = async () => { for (const file of uploadTargets) { const fullPath = path.join(DIST_DIR, file) - await uploadFile(fullPath, platform, version) + + // Keep latest.yml up to date for platform + if (file.startsWith('latest') && file.endsWith('.yml')) { + await uploadFileToRoot(fullPath, platform) + } else { + await uploadFile(fullPath, platform, version) + } } console.log('Upload complete.') diff --git a/electron-builder.yml b/electron-builder.yml index 26c7e5c..b955640 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -30,11 +30,12 @@ dmg: linux: target: - AppImage - # - snap - deb maintainer: electronjs.org category: Utility appImage: artifactName: ${name}-${version}.${ext} npmRebuild: false -publish: null +publish: + provider: generic + url: https://s3.takerofnotes.com/dist