minor(set_env,readme) change #!/bin/bash to #!/usr/bin/env bash for better portability

This commit is contained in:
kerms 2024-07-02 17:18:53 +08:00
parent f72d117d90
commit 4e809cde3f
2 changed files with 4 additions and 4 deletions

View File

@ -1,14 +1,14 @@
# 允斯无线透传器的内嵌网页版上位机
此项目使用`NPM`包管理
此项目使用`NPM`包管理, 需要先安装`node`工具。
# 环境准备步骤
##### 本地测试:
1. `npm install`
2. `npm run dev`
3. 打开 `localhost:5173`
2. `npm run dev`,或用 `npm run devh` 则可以用其他设备访问,如手机调试移动界面。
3. 根据显示的地址,使用浏览器打开,默认地址为`localhost:5173` 或者其他设备访问`192.168.X.X:5173`
##### 发布至esp32

View File

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
export VITE_APP_GIT_TAG=$(git describe --tags | cut -d'-' -f1,2)
export VITE_APP_LAST_COMMIT=$(git log -1 --format=%cd)