reruin / sharelist

快速分享 GoogleDrive OneDrive
MIT License
2.69k stars 931 forks source link

如何使用termux客戶端安裝sharelist #659

Closed d4renk closed 2 years ago

d4renk commented 3 years ago

需求描述 / Description of the feature

直接運行二進制報錯

实现思路 / Suggested solution

No response

附件 / Additional context

No response

reruin commented 3 years ago

提供如下思路。

  1. 尝试安装nodejs。
  2. clone代码,安装依赖 npm install --production
  3. 运行 npm run dev
d4renk commented 3 years ago

提供如下思路。

  1. 尝试安装nodejs。
  2. clone代码,安装依赖 npm install --production
  3. 运行 npm run dev

已安装了cross-env,yarn,nodejs,运行报错

log

reruin commented 3 years ago
  1. 进到 packages/sharelist-webdav 运行 npm run build 。
  2. 如果要web界面,还需要回到根目录,运行 npm run dev-web 访问地址是 http://localhost:3000
d4renk commented 3 years ago
  1. 进到 packages/sharelist-webdav 运行 npm run build 。
  2. 如果要web界面,还需要回到根目录,运行 npm run dev-web 访问地址是 http://localhost:3000

运行npm run dev-web报错 log

reruin commented 3 years ago

改用yarn执行。yarn dev 以及 yarn dev-web

d4renk commented 3 years ago

改用yarn执行。yarn dev 以及 yarn dev-web

log

reruin commented 3 years ago

这就已经成功运行了。

d4renk commented 3 years ago

这就已经成功运行了。

可是打开web只有 { "id": "root://", "type": "folder", "driveName": "", "files": [] } 这是缺少依赖吗?

wellsyue commented 3 years ago

作者抽空写个教程吧,或者和老版本一样,给一个一键脚本,多谢啦

这就已经成功运行了。

reruin commented 3 years ago
  1. 在 sharelist/packages/sharelist 下创建 theme 文件夹
  2. 进入 sharelist/packages/sharelist-web 执行 yarn build.
  3. 将 sharelist/packages/sharelist-web/dist目录 复制到 sharelist/packages/sharelist/theme 下,并重命名为 default.
  4. 在 sharelist 下执行yarn dev 启动

目前代码没有为纯node运行做准备,后续完善了再加安装脚本吧。

d4renk commented 3 years ago
  1. 在 sharelist/packages/sharelist 下创建 theme 文件夹
  2. 进入 sharelist/packages/sharelist-web 执行 yarn build.
  3. 将 sharelist/packages/sharelist-web/dist目录 复制到 sharelist/packages/sharelist/theme 下,并重命名为 default.
  4. 在 sharelist 下执行yarn dev 启动

目前代码没有为纯node运行做准备,后续完善了再加安装脚本吧。

2021-10-19-13.46 log 执行第二步的yarn build报错😂

reruin commented 3 years ago

试下,没测(狗头)。

#!/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

echo "+============================================================+"
echo "|                    ShareList(Next) NetInstaller                  |"
echo "|                                                            |"
echo "|                                         <reruin@gmail.com> |"
echo "|------------------------------------------------------------|"
echo "|                                         https://reruin.net |"
echo "+============================================================+"
echo ""

echo -e "\n|  ShareList(Next) is installing ... "

echo -e "|\n|  Download ShareList Package ... "
wget -O sharelist-master.zip https://github.com/reruin/sharelist/archive/refs/heads/master.zip >/dev/null 2>&1

unzip -q -o sharelist-master.zip -d ./

mv sharelist-master sharelist
rm -f sharelist-master.zip

cd sharelist
echo -e "|\n|  Install Dependents ... "
npm install yarn -g >/dev/null 2>&1
npm install pm2 -g >/dev/null 2>&1

yarn install >/dev/null 2>&1
yarn build-web
mkdir -p ./packages/sharelist/theme/default
mkdir -p ./packages/sharelist/plugins
cp -r ./packages/sharelist-web/dist/* ./packages/sharelist/theme/default
cp -r ./packages/sharelist-plugin/lib/* ./packages/sharelist/plugins
cd packages/sharelist

pm2 start app.js --name sharelist-next >/dev/null 2>&1
pm2 save >/dev/null 2>&1
pm2 startup >/dev/null 2>&1

echo -e "|\n|  Success: ShareList(next) has been installed\n"
wellsyue commented 3 years ago

试下,没测(狗头)。

#!/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

echo "+============================================================+"
echo "|                    ShareList(Next) NetInstaller                  |"
echo "|                                                            |"
echo "|                                         <reruin@gmail.com> |"
echo "|------------------------------------------------------------|"
echo "|                                         https://reruin.net |"
echo "+============================================================+"
echo ""

echo -e "\n|  ShareList(Next) is installing ... "

echo -e "|\n|  Download ShareList Package ... "
wget -O sharelist-master.zip https://github.com/reruin/sharelist/archive/refs/heads/master.zip >/dev/null 2>&1

unzip -q -o sharelist-master.zip -d ./

mv sharelist-master sharelist
rm -f sharelist-master.zip

cd sharelist
echo -e "|\n|  Install Dependents ... "
npm install yarn -g >/dev/null 2>&1
npm install pm2 -g >/dev/null 2>&1

yarn install >/dev/null 2>&1
yarn build-web
mkdir -p ./packages/sharelist/theme/default
mkdir -p ./packages/sharelist/plugins
cp -r ./packages/sharelist-web/dist/* ./packages/sharelist/theme/default
cp -r ./packages/sharelist-plugin/lib/* ./packages/sharelist/plugins
cd packages/sharelist

pm2 start app.js --name sharelist-next >/dev/null 2>&1
pm2 save >/dev/null 2>&1
pm2 startup >/dev/null 2>&1

echo -e "|\n|  Success: ShareList(next) has been installed\n"

多谢作者,测试成功,期间有一个错误, “error sharelist-monorepo@: The engine "node" is incompatible with this module. Expected version ">=14.0.0". Got "10.19.0" 升级一下node,后面就没报错了 测试环境是ubuntu(ARM处理器)

捕获

d4renk commented 3 years ago

试下,没测(狗头)。

#!/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

echo "+============================================================+"
echo "|                    ShareList(Next) NetInstaller                  |"
echo "|                                                            |"
echo "|                                         <reruin@gmail.com> |"
echo "|------------------------------------------------------------|"
echo "|                                         https://reruin.net |"
echo "+============================================================+"
echo ""

echo -e "\n|  ShareList(Next) is installing ... "

echo -e "|\n|  Download ShareList Package ... "
wget -O sharelist-master.zip https://github.com/reruin/sharelist/archive/refs/heads/master.zip >/dev/null 2>&1

unzip -q -o sharelist-master.zip -d ./

mv sharelist-master sharelist
rm -f sharelist-master.zip

cd sharelist
echo -e "|\n|  Install Dependents ... "
npm install yarn -g >/dev/null 2>&1
npm install pm2 -g >/dev/null 2>&1

yarn install >/dev/null 2>&1
yarn build-web
mkdir -p ./packages/sharelist/theme/default
mkdir -p ./packages/sharelist/plugins
cp -r ./packages/sharelist-web/dist/* ./packages/sharelist/theme/default
cp -r ./packages/sharelist-plugin/lib/* ./packages/sharelist/plugins
cd packages/sharelist

pm2 start app.js --name sharelist-next >/dev/null 2>&1
pm2 save >/dev/null 2>&1
pm2 startup >/dev/null 2>&1

echo -e "|\n|  Success: ShareList(next) has been installed\n"

Screenshot_20211020_204903.jpg 是termux路径错了吗

wellsyue commented 3 years ago
  1. 在 sharelist/packages/sharelist 下创建 theme 文件夹
  2. 进入 sharelist/packages/sharelist-web 执行 yarn build.
  3. 将 sharelist/packages/sharelist-web/dist目录 复制到 sharelist/packages/sharelist/theme 下,并重命名为 default.
  4. 在 sharelist 下执行yarn dev 启动

目前代码没有为纯node运行做准备,后续完善了再加安装脚本吧。

网盘目录下超过500个文件,进入目录会报错,DOCKER版也是报错,错误代码“500”,作者帮忙解决一下,多谢!

d4renk commented 3 years ago

试下,没测(狗头)。

#!/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

echo "+============================================================+"
echo "|                    ShareList(Next) NetInstaller                  |"
echo "|                                                            |"
echo "|                                         <reruin@gmail.com> |"
echo "|------------------------------------------------------------|"
echo "|                                         https://reruin.net |"
echo "+============================================================+"
echo ""

echo -e "\n|  ShareList(Next) is installing ... "

echo -e "|\n|  Download ShareList Package ... "
wget -O sharelist-master.zip https://github.com/reruin/sharelist/archive/refs/heads/master.zip >/dev/null 2>&1

unzip -q -o sharelist-master.zip -d ./

mv sharelist-master sharelist
rm -f sharelist-master.zip

cd sharelist
echo -e "|\n|  Install Dependents ... "
npm install yarn -g >/dev/null 2>&1
npm install pm2 -g >/dev/null 2>&1

yarn install >/dev/null 2>&1
yarn build-web
mkdir -p ./packages/sharelist/theme/default
mkdir -p ./packages/sharelist/plugins
cp -r ./packages/sharelist-web/dist/* ./packages/sharelist/theme/default
cp -r ./packages/sharelist-plugin/lib/* ./packages/sharelist/plugins
cd packages/sharelist

pm2 start app.js --name sharelist-next >/dev/null 2>&1
pm2 save >/dev/null 2>&1
pm2 startup >/dev/null 2>&1

echo -e "|\n|  Success: ShareList(next) has been installed\n"

重写了脚本命令路径,没有引导页,这是什么没安装😂? Screenshot_20211023_142332.jpg

reruin commented 3 years ago

@d4renk 这是安装好了。点管理进后台,默认密码 sharelist

d4renk commented 3 years ago

@d4renk 这是安装好了。点管理进后台,默认密码 sharelist

Screenshot_20211024_211321.jpg

Screenshot_20211024_211303.jpg

webav如何挂载😂,webdav代理打开关闭都试了,Mix报错501

reruin commented 3 years ago

@d4renk 后台管理->wevdav路径设置为 /webdav,注意有斜杠. image

d4renk commented 3 years ago

@d4renk 后台管理->wevdav路径设置为 /webdav,注意有斜杠. image

Screenshot_20211025_153707.jpg Screenshot_2021_1025_153938.jpg

账号密码正确,webdav路径已经修改,mix登录还是报501,webdav代理是啥😂

reruin commented 3 years ago

贴一下日志。

d4renk commented 3 years ago

贴一下日志。

pm2 app-error.log

已重新构建了webadv,yarn dev提示文件未发生更改,yarn dev未报错,webdav仍未正常运行

d4renk commented 3 years ago

贴一下日志。

pm2 app-error.log

已重新构建了webadv,yarn dev提示文件未发生更改,yarn dev未报错,webdav仍未正常运行

意外执行一次安装脚本,成功进入webdav,我也不知道为啥😂