mirror of
https://gitea.shironeko-all.duckdns.org/shironeko/Hytale-F2P-2.git
synced 2026-04-20 07:22:26 -04:00
Compare commits
3 Commits
v2.2.2-dra
...
v2.2.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6c61aef68 | ||
|
|
31653a37a7 | ||
|
|
1cb08f029a |
39
.github/workflows/release.yml
vendored
39
.github/workflows/release.yml
vendored
@@ -16,6 +16,15 @@ jobs:
|
|||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
|
- name: Create Virtual .env File
|
||||||
|
# Because main.js needed physical env, we need to create virtual one to store it
|
||||||
|
run: |
|
||||||
|
$env_content = @"
|
||||||
|
HF2P_PROXY_URL=${{ secrets.HF2P_PROXY_URL }}
|
||||||
|
HF2P_SECRET_KEY=${{ secrets.HF2P_SECRET_KEY }}
|
||||||
|
"@
|
||||||
|
Set-Content -Path .env -Value $env_content
|
||||||
|
|
||||||
- name: Build Windows Packages
|
- name: Build Windows Packages
|
||||||
run: npx electron-builder --win --publish never
|
run: npx electron-builder --win --publish never
|
||||||
@@ -37,15 +46,14 @@ jobs:
|
|||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
|
- name: Create Virtual .env File
|
||||||
|
run: |
|
||||||
|
cat << EOF > .env
|
||||||
|
HF2P_PROXY_URL=${{ secrets.HF2P_PROXY_URL }}
|
||||||
|
HF2P_SECRET_KEY=${{ secrets.HF2P_SECRET_KEY }}
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Build macOS Packages
|
- name: Build macOS Packages
|
||||||
env:
|
|
||||||
# Code signing
|
|
||||||
CSC_LINK: ${{ secrets.CSC_LINK }}
|
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
|
||||||
# Notarization
|
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
||||||
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
|
|
||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
||||||
run: npx electron-builder --mac --publish never
|
run: npx electron-builder --mac --publish never
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -53,7 +61,6 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
dist/*.dmg
|
dist/*.dmg
|
||||||
dist/*.zip
|
dist/*.zip
|
||||||
dist/*.blockmap
|
|
||||||
dist/latest-mac.yml
|
dist/latest-mac.yml
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
@@ -71,6 +78,13 @@ jobs:
|
|||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
|
- name: Create Virtual .env File
|
||||||
|
run: |
|
||||||
|
cat << EOF > .env
|
||||||
|
HF2P_PROXY_URL=${{ secrets.HF2P_PROXY_URL }}
|
||||||
|
HF2P_SECRET_KEY=${{ secrets.HF2P_SECRET_KEY }}
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Build Linux Packages
|
- name: Build Linux Packages
|
||||||
run: |
|
run: |
|
||||||
npx electron-builder --linux AppImage deb rpm --publish never
|
npx electron-builder --linux AppImage deb rpm --publish never
|
||||||
@@ -117,6 +131,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo -u builder bash << 'EOF'
|
sudo -u builder bash << 'EOF'
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
cat << EOP > .env
|
||||||
|
HF2P_PROXY_URL=${{ secrets.HF2P_PROXY_URL }}
|
||||||
|
HF2P_SECRET_KEY=${{ secrets.HF2P_SECRET_KEY }}
|
||||||
|
EOP
|
||||||
|
|
||||||
makepkg --printsrcinfo > .SRCINFO
|
makepkg --printsrcinfo > .SRCINFO
|
||||||
makepkg -s --noconfirm
|
makepkg -s --noconfirm
|
||||||
EOF
|
EOF
|
||||||
@@ -133,7 +153,6 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
*.pkg.tar.zst
|
*.pkg.tar.zst
|
||||||
.SRCINFO
|
.SRCINFO
|
||||||
include-hidden-files: true
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [build-windows, build-macos, build-linux, build-arch]
|
needs: [build-windows, build-macos, build-linux, build-arch]
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>com.apple.security.cs.allow-jit</key>
|
|
||||||
<true/>
|
|
||||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
|
||||||
<true/>
|
|
||||||
<key>com.apple.security.cs.disable-library-validation</key>
|
|
||||||
<true/>
|
|
||||||
<key>com.apple.security.network.client</key>
|
|
||||||
<true/>
|
|
||||||
<key>com.apple.security.network.server</key>
|
|
||||||
<true/>
|
|
||||||
<key>com.apple.security.files.user-selected.read-write</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@@ -104,12 +104,7 @@
|
|||||||
],
|
],
|
||||||
"icon": "build/icon.icns",
|
"icon": "build/icon.icns",
|
||||||
"artifactName": "${name}_${version}_${arch}.${ext}",
|
"artifactName": "${name}_${version}_${arch}.${ext}",
|
||||||
"category": "public.app-category.games",
|
"category": "public.app-category.games"
|
||||||
"hardenedRuntime": true,
|
|
||||||
"gatekeeperAssess": false,
|
|
||||||
"entitlements": "build/entitlements.mac.plist",
|
|
||||||
"entitlementsInherit": "build/entitlements.mac.plist",
|
|
||||||
"notarize": true
|
|
||||||
},
|
},
|
||||||
"nsis": {
|
"nsis": {
|
||||||
"oneClick": false,
|
"oneClick": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user