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 fileName = path.basename(filePath)
|
||||
const key = `${platform}/${fileName}`
|
||||
const key = `${fileName}`
|
||||
|
||||
console.log(`Uploading ${fileName} → ${key} (latest)`)
|
||||
|
||||
@@ -113,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})`,
|
||||
@@ -148,7 +148,7 @@ const main = async () => {
|
||||
|
||||
// Keep latest.yml up to date for platform
|
||||
if (file.startsWith('latest') && file.endsWith('.yml')) {
|
||||
await uploadFileToRoot(fullPath, platform)
|
||||
await uploadFileToRoot(fullPath)
|
||||
} else {
|
||||
await uploadFile(fullPath, platform, version)
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user