mirror of
https://git.sanhost.net/sanasol/hytale-f2p.git
synced 2026-02-26 14:51:48 -03:00
Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0dc65c59a | ||
|
|
b748e7316d | ||
|
|
1c7f24c67c | ||
|
|
b0c8c6affa | ||
|
|
472e55668a | ||
|
|
6d09bba996 | ||
|
|
6f3ae4aed7 | ||
|
|
ee40bab9c3 | ||
|
|
84dc63b13e | ||
|
|
022a1bfde1 | ||
|
|
2896ca862b | ||
|
|
651cc16485 | ||
|
|
5d986768d9 | ||
|
|
0f0e360cad | ||
|
|
9c95bbb174 | ||
|
|
23e32b3688 | ||
|
|
f138ada0a6 | ||
|
|
b5adf4aa6c | ||
|
|
224f3f77fb |
61
.github/README1.md
vendored
Normal file
61
.github/README1.md
vendored
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
# GitHub Actions
|
||||||
|
|
||||||
|
## Build and Release Workflow
|
||||||
|
|
||||||
|
The `release.yml` workflow automatically builds the launcher for all platforms.
|
||||||
|
|
||||||
|
### Triggers
|
||||||
|
|
||||||
|
| Trigger | Builds | Creates Release |
|
||||||
|
|---------|--------|-----------------|
|
||||||
|
| Push to `main` | Yes | No |
|
||||||
|
| Push tag `v*` | Yes | Yes |
|
||||||
|
| Manual dispatch | Yes | No |
|
||||||
|
|
||||||
|
### Platforms
|
||||||
|
|
||||||
|
All builds run in parallel:
|
||||||
|
|
||||||
|
- **Linux** (ubuntu-latest): AppImage, deb
|
||||||
|
- **Windows** (windows-latest): NSIS installer, portable exe
|
||||||
|
- **macOS** (macos-latest): Universal DMG (Intel + Apple Silicon)
|
||||||
|
|
||||||
|
### Creating a Release
|
||||||
|
|
||||||
|
1. Update version in `package.json`
|
||||||
|
2. Commit and push to `main`
|
||||||
|
3. Create and push a version tag:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git tag v2.0.1
|
||||||
|
git push origin v2.0.1
|
||||||
|
```
|
||||||
|
|
||||||
|
The workflow will:
|
||||||
|
1. Build all platforms in parallel
|
||||||
|
2. Upload artifacts to GitHub Release
|
||||||
|
3. Generate release notes automatically
|
||||||
|
|
||||||
|
### Build Artifacts
|
||||||
|
|
||||||
|
After each build, artifacts are available in the Actions tab for 90 days:
|
||||||
|
|
||||||
|
- `linux-builds`: `.AppImage`, `.deb`
|
||||||
|
- `windows-builds`: `.exe`
|
||||||
|
- `macos-builds`: `.dmg`, `.zip`, `latest-mac.yml`
|
||||||
|
|
||||||
|
### Local Development
|
||||||
|
|
||||||
|
Build locally for your platform:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build:linux
|
||||||
|
npm run build:win
|
||||||
|
npm run build:mac
|
||||||
|
```
|
||||||
|
|
||||||
|
Or build all platforms (requires appropriate OS):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build:all
|
||||||
|
```
|
||||||
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -17,10 +17,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
- run: npm install
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build:linux
|
- run: npx electron-builder --linux --publish never
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux-builds
|
name: linux-builds
|
||||||
@@ -36,10 +35,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
- run: npm install
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build:win
|
- run: npx electron-builder --win --publish never
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: windows-builds
|
name: windows-builds
|
||||||
@@ -54,10 +52,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
- run: npm install
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build:mac
|
- run: npx electron-builder --mac --publish never
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-builds
|
name: macos-builds
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
dist/*
|
dist/*
|
||||||
node_modules/*
|
node_modules/*
|
||||||
|
package-lock.json
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ See [BUILD.md](BUILD.md) for detailed build instructions.
|
|||||||
1. Download the server files directly from: `http://3.10.208.30:3002/server`
|
1. Download the server files directly from: `http://3.10.208.30:3002/server`
|
||||||
2. Replace the existing files in your `HytaleF2P` installation folder
|
2. Replace the existing files in your `HytaleF2P` installation folder
|
||||||
3. Run the server launcher (.bat) to start hosting your own Hytale server
|
3. Run the server launcher (.bat) to start hosting your own Hytale server
|
||||||
4. You will need a third party software like Hamachi (check on youtube how to use hamachi).
|
4. You will need a third party software like Radmin VPN (check on youtube how to use Radmin VPN).
|
||||||
|
|
||||||
### 🎮 Usage
|
### 🎮 Usage
|
||||||
|
|
||||||
|
|||||||
4915
package-lock.json
generated
4915
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -37,9 +37,12 @@
|
|||||||
"adm-zip": "^0.5.10",
|
"adm-zip": "^0.5.10",
|
||||||
"axios": "^1.6.0",
|
"axios": "^1.6.0",
|
||||||
"discord-rpc": "^4.0.1",
|
"discord-rpc": "^4.0.1",
|
||||||
"tar": "^7.0.0",
|
"tar": "6.2.1",
|
||||||
"uuid": "^9.0.1"
|
"uuid": "^9.0.1"
|
||||||
},
|
},
|
||||||
|
"overrides": {
|
||||||
|
"tar": "$tar"
|
||||||
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.hytalef2p.launcher",
|
"appId": "com.hytalef2p.launcher",
|
||||||
"productName": "Hytale F2P",
|
"productName": "Hytale F2P",
|
||||||
@@ -115,3 +118,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user