Compare commits
2 Commits
0.3.0
...
32a2f93484
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32a2f93484 | ||
|
|
f3263f3a03 |
@@ -71,10 +71,10 @@ const uploadFile = async (filePath, platform, version) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const uploadFileToRoot = async (filePath, platform) => {
|
const uploadFileToRoot = async (filePath) => {
|
||||||
const fileStream = fs.createReadStream(filePath)
|
const fileStream = fs.createReadStream(filePath)
|
||||||
const fileName = path.basename(filePath)
|
const fileName = path.basename(filePath)
|
||||||
const key = `${platform}/${fileName}`
|
const key = `${fileName}`
|
||||||
|
|
||||||
console.log(`Uploading ${fileName} → ${key} (latest)`)
|
console.log(`Uploading ${fileName} → ${key} (latest)`)
|
||||||
|
|
||||||
@@ -113,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})`,
|
||||||
@@ -148,7 +148,7 @@ const main = async () => {
|
|||||||
|
|
||||||
// Keep latest.yml up to date for platform
|
// Keep latest.yml up to date for platform
|
||||||
if (file.startsWith('latest') && file.endsWith('.yml')) {
|
if (file.startsWith('latest') && file.endsWith('.yml')) {
|
||||||
await uploadFileToRoot(fullPath, platform)
|
await uploadFileToRoot(fullPath)
|
||||||
} else {
|
} else {
|
||||||
await uploadFile(fullPath, platform, version)
|
await uploadFile(fullPath, platform, version)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user