4 Commits

Author SHA1 Message Date
Nic Wands
32a2f93484 windows temp build 2026-05-18 16:21:59 -04:00
nicwands
f3263f3a03 Change latest.yml upload location 2026-05-18 15:29:52 -04:00
nicwands
740454d87e bump version 2026-05-18 15:21:55 -04:00
nicwands
18a5730605 latest.yml fix 2026-05-18 15:20:54 -04:00
4 changed files with 34 additions and 12 deletions

View File

@@ -2,10 +2,6 @@
An Electron application with Vue 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 ## Project Setup
### Install ### Install

View File

@@ -71,6 +71,23 @@ const uploadFile = async (filePath, platform, version) => {
) )
} }
const uploadFileToRoot = async (filePath) => {
const fileStream = fs.createReadStream(filePath)
const fileName = path.basename(filePath)
const key = `${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 main = async () => {
const platform = process.argv[2] const platform = process.argv[2]
const version = process.argv[3] const version = process.argv[3]
@@ -96,10 +113,10 @@ const main = async () => {
return return
} }
if (isGitTagDirty()) { // if (isGitTagDirty()) {
console.log('Git working directory is dirty. Skipping upload.') // console.log('Git working directory is dirty. Skipping upload.')
return // return
} // }
console.log( console.log(
`Uploading artifacts for ${platform} v${version} (tag: ${currentTag})`, `Uploading artifacts for ${platform} v${version} (tag: ${currentTag})`,
@@ -128,7 +145,13 @@ const main = async () => {
for (const file of uploadTargets) { for (const file of uploadTargets) {
const fullPath = path.join(DIST_DIR, file) 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)
} else {
await uploadFile(fullPath, platform, version)
}
} }
console.log('Upload complete.') console.log('Upload complete.')

View File

@@ -12,6 +12,8 @@ asarUnpack:
- resources/** - resources/**
win: win:
executableName: app.takerofnotes.com executableName: app.takerofnotes.com
cscLink: C:\Users\nicwands\Desktop\takerofnotes.pfx
cscKeyPassword: password
nsis: nsis:
artifactName: ${name}-${version}-setup.${ext} artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName} shortcutName: ${productName}
@@ -30,11 +32,12 @@ dmg:
linux: linux:
target: target:
- AppImage - AppImage
# - snap
- deb - deb
maintainer: electronjs.org maintainer: electronjs.org
category: Utility category: Utility
appImage: appImage:
artifactName: ${name}-${version}.${ext} artifactName: ${name}-${version}.${ext}
npmRebuild: false npmRebuild: false
publish: null publish:
provider: generic
url: https://s3.takerofnotes.com/dist

View File

@@ -1,6 +1,6 @@
{ {
"name": "takerofnotes-app", "name": "takerofnotes-app",
"version": "0.2.0", "version": "0.3.0",
"description": "An Electron application with Vue", "description": "An Electron application with Vue",
"main": "./out/main/index.js", "main": "./out/main/index.js",
"author": "example.com", "author": "example.com",