Compare commits

...

3 Commits

Author SHA1 Message Date
spiritlhl
913a1725c1 fix: 修复版本号问题 2025-06-03 22:17:12 +08:00
spiritlhl
f1acbd361b fix: 自动替换和更新goecs.sh脚本中的最新tag 2025-06-03 22:13:41 +08:00
spiritlhl
d6f62f8624 fix: 添加部分说明 2025-05-23 15:41:48 +08:00
4 changed files with 37 additions and 8 deletions

View File

@@ -40,3 +40,25 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GHT }}
GOPRIVATE: github.com/oneclickvirt/security
- name: Update goecs.sh with new version
if: startsWith(github.ref, 'refs/tags/v')
run: |
VERSION="${GITHUB_REF#refs/tags/v}"
FILE="goecs.sh"
BRANCH="master"
# Checkout master branch
git fetch origin $BRANCH:$BRANCH
git switch $BRANCH
# Replace version in goecs.sh
sed -i "s/\(_yellow \"Unable to get version info, using default version \).*\(\".*\)/\1$VERSION\2/" "$FILE"
sed -i "s/\(ECS_VERSION=\"\).*\(\"\)/\1$VERSION\2/" "$FILE"
# Commit and push
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add "$FILE"
git commit -m "chore: update ECS_VERSION to $VERSION in goecs.sh"
git push origin $BRANCH
env:
GITHUB_TOKEN: ${{ secrets.GHT }}

View File

@@ -40,9 +40,10 @@ Shell 版本:[https://github.com/spiritLHLS/ecs](https://github.com/spiritLHLS
> 更多架构与系统请自行测试,如有问题请开 issues。
### **待支持的系统**
| 系统 | 说明 |
|-----|--------------------------|
| MacOS | 存在硬件测试 BUG 未修复,存在环境依赖未修复 |
| 系统 | 说明 |
|-----|---------------------------|
| MacOS | 存在硬件测试 BUG 未修复,存在环境依赖未修复 |
| Android(arm64) | 存在权限问题未修复非安卓系统的ARM架构无问题 |
---

View File

@@ -39,10 +39,10 @@ Shell version: [https://github.com/spiritLHLS/ecs/blob/main/README_EN.md](https:
> Please test additional architectures and systems yourself. If you encounter any issues, please open an issue.
### **Systems Pending Support**
| OS | Notes |
|--------|--------------------------------------------------------|
| MacOS | Hardware testing bugs and environment dependencies unresolved |
| OS | Notes |
|--------|-------------------------------------------------------------------------------------------------|
| MacOS | Hardware testing bugs and environment dependencies unresolved |
| Android(arm64) | Permission issues that are not fixed, no problems with ARM architecture for non-Android systems |
---
## **Features**
@@ -90,6 +90,12 @@ Shell version: [https://github.com/spiritLHLS/ecs/blob/main/README_EN.md](https:
export noninteractive=true && curl -L https://cnb.cool/oneclickvirt/ecs/-/git/raw/main/goecs.sh -o goecs.sh && chmod +x goecs.sh && bash goecs.sh env && bash goecs.sh install && goecs -l en
```
- **Short Link:**
```bash
export noninteractive=true && curl -L https://bash.spiritlhl.net/goecs -o goecs.sh && chmod +x goecs.sh && bash goecs.sh env && bash goecs.sh install && goecs
``
#### **Detailed instructions**
**Detailed description** of the commands in **Command **Controls whether to install dependencies**, **Whether to update the package manager**, **Default interaction mode can be selected***

View File

@@ -38,7 +38,7 @@ import (
)
var (
ecsVersion = "v0.1.33"
ecsVersion = "v0.1.36"
menuMode bool
onlyChinaTest bool
input, choice string