Skip to content

Commit

Permalink
version up
Browse files Browse the repository at this point in the history
  • Loading branch information
mienaiyami committed Feb 12, 2023
1 parent 90bade9 commit 44c8486
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Offline Manga/Manhwa Reader (not a downloader) built with react and typescript. Manga Reader for people who prefer to download manga/manhwa(from services like hakuneko) then read offline.

[![Github Latest Release](https://img.shields.io/github/v/tag/mienaiyami/react-ts-offline-manga-reader?label=release&style=flat-square)](https://github.com/mienaiyami/react-ts-offline-manga-reader/releases/latest) |
[![Github All Releases](https://img.shields.io/github/downloads/mienaiyami/react-ts-offline-manga-reader/total.svg?style=flat-square)](https://github.com/mienaiyami/react-ts-offline-manga-reader/releases)
[![Github Latest Release](https://img.shields.io/github/v/tag/mienaiyami/react-ts-offline-manga-reader?label=release&style=flat-square&logo=github)](https://github.com/mienaiyami/react-ts-offline-manga-reader/releases/latest) |
[![Github All Releases](https://img.shields.io/github/downloads/mienaiyami/react-ts-offline-manga-reader/total.svg?style=flat-square&logo=github)](https://github.com/mienaiyami/react-ts-offline-manga-reader/releases)

## Features

Expand Down
38 changes: 38 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,47 @@

## Downloads

[![Download setup](https://img.shields.io/badge/Windows%20Setup%20(exe)-$$EXE_NAME$$-brightgreen?logo=windows&logoColor=blue)](https://github.com/mienaiyami/react-ts-offline-manga-reader/releases/download/v$$TAG$$/$$EXE_NAME$$)

[![Download Portable](https://img.shields.io/badge/Windows%20Portable%20(zip)-$$ZIP_NAME$$-brightgreen?logo=windows&logoColor=blue)](https://github.com/mienaiyami/react-ts-offline-manga-reader/releases/download/v$$TAG$$/$$ZIP_NAME$$)

---

## Added

- Open app automatically after updating (portable version).
- New shortcuts to switch between `PagePerRow` and `ReaderType`.
- Set max width of images (works only when `Size Clamp` is disabled).
- Search bar:
- Paste link in search bar to open.
- Type `..\` to go up directory.
- Type name of item in results ending with `\` to open it in reader. e.g. `One Piece\`.
- Type drive name ending with `:\` to change drive. e.g. `D:\`.
- Save toggled state of bookmark / history tab.


## Changed

- Better searching system.
- Prevent some shortcuts if key pressed is held/repeated.
- Disable chapter transition screen in zen mode as well.
- Images in reader are now un-draggable.
- Scroll to current page number after changing `PagePerRow` and `ReaderType`.
- Removed checking for `.bin` file.
- Prevent some shortcuts from working if pressed in combination with `ctrl` key.
- UI enhancements.

## Fixed

- App appear frozen when opening `.zip` or `.cbz` file.

---

#### Todo

- Add canvas based image system for performance.
- Write testing.
- Adjust app for debian.

---

6 changes: 4 additions & 2 deletions electron/IS_PORTABLE.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
const isPortable = false;
export default isPortable;

const isPortable = false;
export default isPortable;

18 changes: 16 additions & 2 deletions makeAll.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const fs = require('fs');
const readline = require("readline");

const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});

const {
exec
} = require("child_process")
Expand All @@ -21,7 +28,6 @@ const printProcessing = (string) => {
}, 500);
// console.log(`\x1b[31m${string} \x1b[0m`)
}
console.log("\x1b[91mMake sure to edit changelog.md before pushing.\x1b[0m")

const makeAndPushTag = () => {

Expand Down Expand Up @@ -49,6 +55,10 @@ const makeAndPushTag = () => {
}

const pushRelease = () => {
let changelog = fs.readFileSync("./changelog.md", "utf8");
changelog = changelog.replaceAll("$$TAG$$", pkgJSON.version)
.replaceAll("$$EXE_NAME$$", `Manga.Reader-${pkgJSON.version}-Setup.exe`)
.replaceAll("$$ZIP_NAME$$", `Manga.Reader-win32-${pkgJSON.version}-Portable.zip`)
const pushCommand = (`gh release create v${pkgJSON.version} -t v${pkgJSON.version} ` +
`--discussion-category "General" ` +
"--generate-notes " +
Expand Down Expand Up @@ -144,4 +154,8 @@ const makeZip = () => {
});

}
setTimeout(makeExe, 3000);

rl.question("\x1b[91mMake sure to edit and commit package.json and changelog.md before starting.\x1b[0m", () => {
makeExe()
rl.close();
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mangareader",
"productName": "Manga Reader",
"version": "2.5.2",
"version": "2.6.0",
"description": "App to read manga on desktop",
"main": ".webpack/main",
"author": {
Expand Down

0 comments on commit 44c8486

Please sign in to comment.