Skip to content

Commit e17124d

Browse files
committed
fixed autoupdate issue, version up
1 parent 8cd58b0 commit e17124d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Note
2+
3+
**Due to some limitations, existing users (v2.11.5 and below) might need to manually update the app.**
4+
15
## Added
26

37
- Automated release for windows and linux(debian).

electron/updater.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const downloadUpdates = (latestVersion: string, windowId: number) => {
183183

184184
if (process.platform === "win32")
185185
if (IS_PORTABLE) {
186-
const dl = downloadLink + latestVersion + "/" + `Yomikiru-win32-${latestVersion}-Portable.zip`;
186+
const dl = downloadLink + latestVersion + "/" + `Yomikiru-win32-v${latestVersion}-Portable.zip`;
187187
const extractPath = path.join(tempPath, "updates");
188188
if (!fs.existsSync(extractPath)) fs.mkdirSync(extractPath);
189189

@@ -214,7 +214,7 @@ const downloadUpdates = (latestVersion: string, windowId: number) => {
214214
});
215215
});
216216
} else {
217-
const dl = downloadLink + latestVersion + "/" + `Yomikiru-${latestVersion}-Setup.exe`;
217+
const dl = downloadLink + latestVersion + "/" + `Yomikiru-v${latestVersion}-Setup.exe`;
218218
downloadFile(dl, newWindow.webContents, (file) => {
219219
logger.log(`${file.filename} downloaded.`);
220220
app.on("before-quit", () => {
@@ -229,7 +229,7 @@ const downloadUpdates = (latestVersion: string, windowId: number) => {
229229
});
230230
}
231231
else if (process.platform === "linux") {
232-
const dl = downloadLink + latestVersion + "/" + `Yomikiru-${latestVersion}-amd64.deb`;
232+
const dl = downloadLink + latestVersion + "/" + `Yomikiru-v${latestVersion}-amd64.deb`;
233233
downloadFile(dl, newWindow.webContents, (file) => {
234234
logger.log(`${file.filename} downloaded.`);
235235
const script = `

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "yomikiru",
33
"productName": "Yomikiru",
4-
"version": "2.12.0",
4+
"version": "2.12.1",
55
"description": "App to read manga / comic / epub offline on desktop",
66
"main": ".webpack/main",
77
"author": {

0 commit comments

Comments
 (0)