Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows版本无法运行 #26

Closed
uniboy747 opened this issue Feb 25, 2021 · 5 comments
Closed

windows版本无法运行 #26

uniboy747 opened this issue Feb 25, 2021 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@uniboy747
Copy link

你好,在windows运行环境中,打开程序显示“检查更新”后立即闪退

@xhofe
Copy link
Member

xhofe commented Feb 26, 2021

你好,在windows运行环境中,打开程序显示“检查更新”后立即闪退

可以描述具体一点吗,比如日志输出到哪里闪退,可以使用命令行运行查看具体的错误。可能是配置文件读取出错。

@xhofe xhofe added the help wanted Extra attention is needed label Feb 26, 2021
@misaka123456
Copy link

misaka123456 commented Feb 27, 2021

[root@iZ2zee5n9tn8kvoy8l9mscZ alist]# ./alist 
INFO[2021-02-27 11:57:01] 
 ________  ___       ___  ________  _________   
|\   __  \|\  \     |\  \|\   ____\|\___   ___\ 
\ \  \|\  \ \  \    \ \  \ \  \___|\|___ \  \_| 
 \ \   __  \ \  \    \ \  \ \_____  \   \ \  \  
  \ \  \ \  \ \  \____\ \  \|____|\  \   \ \  \ 
   \ \__\ \__\ \_______\ \__\____\_\  \   \ \__\
    \|__|\|__|\|_______|\|__|\_________\   \|__|
                            \|_________| 
INFO[2021-02-27 11:57:01] 检查更新...                                      
panic: runtime error: slice bounds out of range [1:0]

goroutine 1 [running]:
github.com/Xhofe/alist/bootstrap.CheckUpdate()
        /home/runner/work/alist/alist/bootstrap/update.go:37 +0x479
github.com/Xhofe/alist/bootstrap.start()
        /home/runner/work/alist/alist/bootstrap/cmd.go:48 +0x76
github.com/Xhofe/alist/bootstrap.Run()
        /home/runner/work/alist/alist/bootstrap/cmd.go:29 +0xd3
main.main()
        /home/runner/work/alist/alist/alist.go:6 +0x17

@xhofe
Copy link
Member

xhofe commented Mar 1, 2021

[root@iZ2zee5n9tn8kvoy8l9mscZ alist]# ./alist 
INFO[2021-02-27 11:57:01] 
 ________  ___       ___  ________  _________   
|\   __  \|\  \     |\  \|\   ____\|\___   ___\ 
\ \  \|\  \ \  \    \ \  \ \  \___|\|___ \  \_| 
 \ \   __  \ \  \    \ \  \ \_____  \   \ \  \  
  \ \  \ \  \ \  \____\ \  \|____|\  \   \ \  \ 
   \ \__\ \__\ \_______\ \__\____\_\  \   \ \__\
    \|__|\|__|\|_______|\|__|\_________\   \|__|
                            \|_________| 
INFO[2021-02-27 11:57:01] 检查更新...                                      
panic: runtime error: slice bounds out of range [1:0]

goroutine 1 [running]:
github.com/Xhofe/alist/bootstrap.CheckUpdate()
        /home/runner/work/alist/alist/bootstrap/update.go:37 +0x479
github.com/Xhofe/alist/bootstrap.start()
        /home/runner/work/alist/alist/bootstrap/cmd.go:48 +0x76
github.com/Xhofe/alist/bootstrap.Run()
        /home/runner/work/alist/alist/bootstrap/cmd.go:29 +0xd3
main.main()
        /home/runner/work/alist/alist/alist.go:6 +0x17

可能是无法访问https://api.github.com/repos/Xhofe/alist/releases/latest 的原因。

@Ghd-0802
Copy link

WIN10 无法运行 显示检查更新 没有看到其他提示就闪退了,https://api.github.com/repos/Xhofe/alist/releases/latest 可以正常访问

@xhofe
Copy link
Member

xhofe commented Mar 14, 2021

现在可以在命令行中添加-skip-update跳过检查更新

@xhofe xhofe closed this as completed Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants