Skip to content

Commit

Permalink
NEO_1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoux committed May 26, 2023
1 parent ed5106f commit e697de2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# ngapost2md ver.[neo\<Pre>]
# ngapost2md ver.[NEO_1.0.1]

快速爬楼存回复人+时间+内容,支持保存正文图片、音视频等,支持常见 bbcode 格式(具体见 README 后半部分)。

**此为 2023 年由 Go 语言重写的版本。倘若需要旧版 Python 版代码,请切换分支**

**目前版本还处于预发布状态,不稳定**
**此为 2023 年由 Go 语言重写的版本。倘若需要旧版 Python 版代码(不再维护),请切换分支至 LEGACY**

## 使用指引

Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

func main() {
fmt.Printf("ngapost2md (c) ludoux [ GitHub: https://github.com/ludoux/ngapost2md/tree/neo ]\nVersion: %s\n", nga.VERSION)
if nga.DEBUG_MODE {
if nga.DEBUG_MODE == "1" {
fmt.Println("***DEBUG MODE ON***")
}
if len(os.Args) != 2 && len(os.Args) != 3 {
Expand All @@ -28,8 +28,8 @@ func main() {
os.Exit(0)
}

//DEBUG_MODE 下不会检查更新
if nga.DEBUG_MODE {
//DEBUG_MODE不为1时(不是DEBUG_MODE)时检测更新
if nga.DEBUG_MODE != "1" {
resp, _ := req.C().R().Get("https://gitee.com/ludoux/check-update/raw/master/ngapost2md/version_neo.txt")
//版本更新配置文件改为 DO_NOT_CHECK ,软件则不会强制使用最新版本
if resp.String() != nga.VERSION && resp.String() != "DO_NOT_CHECK" {
Expand Down
4 changes: 2 additions & 2 deletions nga/nga.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ var (

// 这里配置文件和传参都没法改
var (
VERSION = "NEO_1.0.1_20230526"
VERSION = "NEO_1.0.1"
DELAY_MS = 330
mutex sync.Mutex
)

// ldflags 区域。GitHub Actions 编译时会使用 ldflags 来修改如下值:
var (
DEBUG_MODE = true //GitHub Actions 打包的时候会修改为False。
DEBUG_MODE = "1" //GitHub Actions 打包的时候会修改为"0"。本地打包可以 go build -ldflags "-X 'github.com/ludoux/ngapost2md/nga.DEBUG_MODE=0'" main.go
/**
* DEBUG_MODE 为true时会:
* 启动时禁用自动版本检查
Expand Down

0 comments on commit e697de2

Please sign in to comment.