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
## 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

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 platform = process.argv[2]
const version = process.argv[3]
@@ -96,10 +113,10 @@ const main = async () => {
return
}
if (isGitTagDirty()) {
console.log('Git working directory is dirty. Skipping upload.')
return
}
// if (isGitTagDirty()) {
// console.log('Git working directory is dirty. Skipping upload.')
// return
// }
console.log(
`Uploading artifacts for ${platform} v${version} (tag: ${currentTag})`,
@@ -128,8 +145,14 @@ const main = async () => {
for (const file of uploadTargets) {
const fullPath = path.join(DIST_DIR, file)
// 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.')
}

View File

@@ -12,6 +12,8 @@ asarUnpack:
- resources/**
win:
executableName: app.takerofnotes.com
cscLink: C:\Users\nicwands\Desktop\takerofnotes.pfx
cscKeyPassword: password
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
@@ -30,11 +32,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

View File

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