Skip to content

Commit

Permalink
fixed autoupdate issue, version up
Browse files Browse the repository at this point in the history
  • Loading branch information
mienaiyami committed Jun 14, 2023
1 parent 8cd58b0 commit e17124d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Note

**Due to some limitations, existing users (v2.11.5 and below) might need to manually update the app.**

## Added

- Automated release for windows and linux(debian).
Expand Down
6 changes: 3 additions & 3 deletions electron/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const downloadUpdates = (latestVersion: string, windowId: number) => {

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

Expand Down Expand Up @@ -214,7 +214,7 @@ const downloadUpdates = (latestVersion: string, windowId: number) => {
});
});
} else {
const dl = downloadLink + latestVersion + "/" + `Yomikiru-${latestVersion}-Setup.exe`;
const dl = downloadLink + latestVersion + "/" + `Yomikiru-v${latestVersion}-Setup.exe`;
downloadFile(dl, newWindow.webContents, (file) => {
logger.log(`${file.filename} downloaded.`);
app.on("before-quit", () => {
Expand All @@ -229,7 +229,7 @@ const downloadUpdates = (latestVersion: string, windowId: number) => {
});
}
else if (process.platform === "linux") {
const dl = downloadLink + latestVersion + "/" + `Yomikiru-${latestVersion}-amd64.deb`;
const dl = downloadLink + latestVersion + "/" + `Yomikiru-v${latestVersion}-amd64.deb`;
downloadFile(dl, newWindow.webContents, (file) => {
logger.log(`${file.filename} downloaded.`);
const script = `
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "yomikiru",
"productName": "Yomikiru",
"version": "2.12.0",
"version": "2.12.1",
"description": "App to read manga / comic / epub offline on desktop",
"main": ".webpack/main",
"author": {
Expand Down

0 comments on commit e17124d

Please sign in to comment.