Skip to content

Commit ae8c133

Browse files
committed
New: S3 server support
1 parent d07feac commit ae8c133

8 files changed

+1932
-355
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1616
- Setting to enable/disable go next/previous chapter with mouse scroll (Vertical reading) [`37612bf`](https://github.com/ollm/OpenComic/commit/37612bfdce13ce73348bda997bf3aeb32b8915af)
1717
- About this file dialog [`38f72f3`](https://github.com/ollm/OpenComic/commit/38f72f3c573aaa2a1923f3e6704261a9b600b3ab)
1818
- Delete downloaded compressed files for thumbnail generation if they exceed 50% of the maximum tmp size [`2a50079`](https://github.com/ollm/OpenComic/commit/2a500790d2251f0a447aae2f08050af56c4a6659)
19-
- Change extraction of zip to 7z to improve performance and support partial extraction of corrupted files
19+
- Change extraction of zip to 7z to improve performance and support partial extraction of corrupted files [`d07feac`](https://github.com/ollm/OpenComic/commit/d07feac608903ef7ba582273bca06abaded4f4df)
20+
- S3 server support
2021

2122
##### 🐛 Bug Fixes
2223

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ More [Screenshots 📸](https://github.com/ollm/OpenComic/blob/master/SCREENSHOT
2929
- 📄 Support this documents/ebook formats: `PDF`, `EPUB` (Alpha)
3030
- 🎵 Support background music from folder: `MP3`, `M4A`, `WEBM`, `WEBA`, `OGG`, `OPUS`, `WAV`, `FLAC`
3131
- 📁 Master folders support
32-
- ☁️ Server connection support: `smb://`, `ftp://`, `ftps://`, `scp://`, `sftp://`, `ssh://`
32+
- ☁️ Server connection support: `smb://`, `ftp://`, `ftps://`, `scp://`, `sftp://`, `ssh://`, `s3://`
3333
- 🇯🇵 Manga read mode
3434
- 🇰🇷 Webtoon read mode
3535
- 📖 Double page view

package-lock.json

+1,663-186
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"postinstall": "electron-builder install-app-deps && node scripts/zstd-copy-native.js"
6767
},
6868
"dependencies": {
69+
"@aws-sdk/client-s3": "^3.540.0",
6970
"@electron/remote": "^2.1.0",
7071
"@stifani/smb2": "^0.3.0",
7172
"@toondepauw/node-zstd": "^1.2.0",

scripts/file-manager.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2752,7 +2752,7 @@ function setServerInOfflineMode(value = false)
27522752

27532753
function isServer(path)
27542754
{
2755-
if(/^(?:smb|ssh|sftp|scp|ftp|ftps)\:[\/\\]{1,2}/.test(path))
2755+
if(/^(?:smb|ssh|sftp|scp|ftp|ftps|s3)\:[\/\\]{1,2}/.test(path))
27562756
return true;
27572757

27582758
return false;
@@ -3061,6 +3061,7 @@ module.exports = {
30613061
return new fileCompressed(path, realPath, forceType, prefixes);
30623062
},
30633063
removeTmpVector: removeTmpVector,
3064+
removePathPart: removePathPart,
30643065
filtered: filtered,
30653066
sort: sort,
30663067
realPath: realPath,

0 commit comments

Comments
 (0)