mirror of
https://github.com/yeongpin/cursor-free-vip.git
synced 2025-08-02 20:47:35 +08:00
update new build
This commit is contained in:
parent
721c13cb2f
commit
9500ce1249
51
.github/workflows/build.yml
vendored
51
.github/workflows/build.yml
vendored
@ -28,6 +28,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
|
- name: Get version
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||||
|
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@ -38,11 +47,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pyinstaller build.spec
|
pyinstaller build.spec
|
||||||
|
|
||||||
|
- name: Rename artifact
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mv dist/*.exe "dist/CursorFreeVIP_${VERSION}_windows.exe"
|
||||||
|
|
||||||
- name: Upload Windows artifact
|
- name: Upload Windows artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: CursorFreeVIP-Windows
|
name: CursorFreeVIP-Windows
|
||||||
path: dist/*.exe
|
path: dist/CursorFreeVIP_*_windows.exe
|
||||||
|
|
||||||
build-macos-arm64:
|
build-macos-arm64:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@ -130,31 +144,40 @@ jobs:
|
|||||||
create-release:
|
create-release:
|
||||||
needs: [build-windows, build-macos-arm64, build-linux, build-macos-intel]
|
needs: [build-windows, build-macos-arm64, build-linux, build-macos-intel]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get version
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||||
|
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Create release archives
|
- name: Prepare release files
|
||||||
run: |
|
run: |
|
||||||
cd artifacts
|
cd artifacts
|
||||||
zip -r CursorFreeVIP-Windows.zip CursorFreeVIP-Windows/
|
mv CursorFreeVIP-Windows/* .
|
||||||
zip -r CursorFreeVIP-MacOS-ARM64.zip CursorFreeVIP-MacOS-ARM64/
|
mv CursorFreeVIP-MacOS-ARM64/* .
|
||||||
zip -r CursorFreeVIP-Linux.zip CursorFreeVIP-Linux/
|
mv CursorFreeVIP-Linux/* .
|
||||||
zip -r CursorFreeVIP-MacOS-Intel.zip CursorFreeVIP-MacOS-Intel/
|
mv CursorFreeVIP-MacOS-Intel/* .
|
||||||
|
rm -rf CursorFreeVIP-*/
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
artifacts/CursorFreeVIP-Windows.zip
|
artifacts/CursorFreeVIP_${VERSION}_windows.exe
|
||||||
artifacts/CursorFreeVIP-MacOS-ARM64.zip
|
artifacts/CursorFreeVIP_${VERSION}_mac_arm64
|
||||||
artifacts/CursorFreeVIP-Linux.zip
|
artifacts/CursorFreeVIP_${VERSION}_linux
|
||||||
artifacts/CursorFreeVIP-MacOS-Intel.zip
|
artifacts/CursorFreeVIP_${VERSION}_mac_intel
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user