Skip to content

Commit

Permalink
🐛 fix #30
Browse files Browse the repository at this point in the history
  • Loading branch information
freeok committed Nov 20, 2024
1 parent e76cf51 commit c1728ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,14 @@ scoop install so-novel
## 常见问题

macOS & Linux 运行 .sh 前需要执行命令去除行尾的 ^M
macOS & Linux 运行 .sh 失败,尝试以下命令

```bash
dos2unix macos-run.sh
dos2unix linux-run.sh
```

macOS & Linux 运行 .sh 报错:./runtime/bin/java: Permission denied

执行命令 `chmod 777 runtime/bin/java`

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=freeok/so-novel&type=Date)](https://star-history.com/#freeok/so-novel&Date)
4 changes: 1 addition & 3 deletions input/linux-run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# 用户配置文件路径在 Dconfig.file= 后修改
chmod 777 ./runtime/bin/java
./runtime/bin/java -Dconfig.file=config.ini -jar app.jar
chmod 777 ./runtime/bin/java && ./runtime/bin/java -Dconfig.file=config.ini -jar app.jar
4 changes: 1 addition & 3 deletions input/macos-run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# 用户配置文件路径在 Dconfig.file= 后修改
chmod 777 ./runtime/bin/java
./runtime/Contents/Home/bin/java -Dconfig.file=config.ini -jar app.jar
chmod 777 ./runtime/bin/java && ./runtime/Contents/Home/bin/java -Dconfig.file=config.ini -jar app.jar
10 changes: 5 additions & 5 deletions input/readme.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Windows 用户
运行 exe 文件启动
运行 exe

macOS 用户
运行 macos-run.sh 启动
运行 macos-run.sh

Linux 用户
运行 linux-run.sh 启动
运行 linux-run.sh

提示:
1. 将终端窗口最大化,使用体验更佳
2. config.ini 是配置文件,下载格式在此修改,保存后重新运行 exe 生效
3. 按 Tab 键选择功能(Tab 可连按),然后按 Enter 键确认执行
2. config.ini 是配置文件,下载格式在此修改,保存后重启生效
3. 按 Tab 键选择功能(可连按),然后按 Enter 键确认执行
4. 请按照要求输入内容,若不按要求输入则无法正常工作
5. 若书源失效,请 New issue (https://github.com/freeok/so-novel/issues)

Expand Down

0 comments on commit c1728ec

Please sign in to comment.