Thanks for approve from author of Genshin-Impact-Wish-Simulator.
将网站运行目录设置为genshin-impact-picker-main/electron-static/static文件夹
支持自定义明星,格式为明星+空格+姓名(如5张三,每行一个)
提交名单在页面左上角问号里提交
docker run -d --name ysdm \
-p 8000:80 \
maizig/ysdm:1.0.0
运行成功后,宿主机映射地址为
http://localhost:8000
,使用 Nginx / Apache 进行反代是一个不错的选择(以及 SSL 配置)
前端代码在目录 Genshin-Impact-Wish-Simulator
. 基于 Svelte
框架.
$ npm run install
$ npm run dev
在 Genshin-Impact-Wish-Simulator
中执行
$ npm run build
将生成的静态文件 .vercel/static
拷贝到 electron-static/static
目录中, 覆盖掉.
进入 electron-static
目录执行
$ npm install
$ npm run build (生成当前系统可执行文件)
$ npm run build-win (生成win32-x64)
暂未测试效果
部署成功后,点击 Settings-General
, 将 Build & Development Settings
下的 Output Directory
设置为 .vercel/static
,将 Root Directory
设置为 Genshin-Impact-Wish-Simulator
。回到 Deployments
下,点击当前部署最右侧的三个点,选择 Redeploy
,等待部署完成后访问 Vercel 提供的域名即可使用。