Commit 44af9f83 authored by nanahira's avatar nanahira

start of test updater

parent 665e7220
...@@ -87,7 +87,7 @@ upload_to_minio: ...@@ -87,7 +87,7 @@ upload_to_minio:
tags: tags:
- linux - linux
script: script:
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/downloads - aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/downloads-test
only: only:
- tags - tags
- v3 - v3
...@@ -213,7 +213,8 @@ app.on('ready', async () => { ...@@ -213,7 +213,8 @@ app.on('ready', async () => {
createTray(); createTray();
} }
if (process.env['NODE_ENV'] === 'production') { if (process.env['NODE_ENV'] === 'production') {
let updateTempPath = '~/.cache/mycard-updater' let updateTempPath = '~/.cache/' +
'mycard-updater'
if (process.platform === 'win32') { if (process.platform === 'win32') {
updateTempPath = `${process.env.LOCALAPPDATA}\\mycard-updater` updateTempPath = `${process.env.LOCALAPPDATA}\\mycard-updater`
} else if (process.platform === 'darwin') { } else if (process.platform === 'darwin') {
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
"publish": [ "publish": [
{ {
"provider": "generic", "provider": "generic",
"url": "https://api.moecube.com/downloads" "url": "https://api.moecube.com/downloads-test"
} }
], ],
"extraResources": [ "extraResources": [
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
"publish": [ "publish": [
{ {
"provider": "generic", "provider": "generic",
"url": "https://api.moecube.com/downloads" "url": "https://api.moecube.com/downloads-test"
} }
] ]
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment