diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b340ec8b..ccebc078 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,18 +29,20 @@ jobs: runs-on: windows-latest needs: [ release ] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: '^1.19' - cache: true - - uses: subosito/flutter-action@v2 + # - uses: actions/checkout@v3 + # - uses: actions/setup-go@v3 + # with: + # go-version: '^1.19' + # cache: true + # - uses: subosito/flutter-action@v2 - name: Build env: VERSION: ${{ needs.release.outputs.tag_name }} run: | - ls C:\ProgramData\Chocolatey\lib\mingw - ls C:\ProgramData\Chocolatey\lib\mingw\bin + ls C:\ProgramData\Chocolatey\bin + ls C:\ProgramData\Chocolatey\lib\mingw\tools + ls C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\bin + go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/monkeyWie/gopeed/bind/desktop cd ui/flutter flutter build windows @@ -101,219 +103,219 @@ jobs: upload_url: ${{ needs.release.outputs.upload_url }} asset_path: ui/flutter/build/windows/Output/* overwrite: true - build-macos-arm64-lib: - runs-on: ubuntu-latest - needs: [ release ] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: '^1.19' - cache: true - - run: mkdir -p ~/image-cache - - id: image-cache - uses: actions/cache@v3 - with: - path: ~/image-cache - key: image-cache-xgo-v1.19 - - if: steps.image-cache.outputs.cache-hit != 'true' - run: | - docker pull techknowlogick/xgo:go-1.19.x - docker save -o ~/image-cache/xgo.tar techknowlogick/xgo:go-1.19.x - - if: steps.image-cache.outputs.cache-hit == 'true' - run: docker load -i ~/image-cache/xgo.tar - - name: Build - run: | - go install src.techknowlogick.com/xgo@latest - xgo --targets=darwin/arm64 -tags="nosqlite" -ldflags="-w -s" -buildmode=c-shared -pkg=bind/desktop -out=libgopeed . - mv libgopeed-*.dylib libgopeed.dylib - - uses: actions/upload-artifact@v3 - with: - name: macos-arm64-lib - path: libgopeed.dylib - build-macos: - runs-on: macos-latest - needs: [ release, build-macos-arm64-lib ] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: '^1.19' - cache: true - - uses: actions/setup-node@v3 - with: - node-version: 16 - - uses: subosito/flutter-action@v2 - - name: Install appdmg - run: npm install -g appdmg - - uses: actions/download-artifact@v3 - with: - name: macos-arm64-lib - path: ui/flutter/macos/Frameworks - - name: Build - env: - VERSION: ${{ needs.release.outputs.tag_name }} - run: | - PROJECT_DIR=$(pwd) + # build-macos-arm64-lib: + # runs-on: ubuntu-latest + # needs: [ release ] + # steps: + # - uses: actions/checkout@v3 + # - uses: actions/setup-go@v3 + # with: + # go-version: '^1.19' + # cache: true + # - run: mkdir -p ~/image-cache + # - id: image-cache + # uses: actions/cache@v3 + # with: + # path: ~/image-cache + # key: image-cache-xgo-v1.19 + # - if: steps.image-cache.outputs.cache-hit != 'true' + # run: | + # docker pull techknowlogick/xgo:go-1.19.x + # docker save -o ~/image-cache/xgo.tar techknowlogick/xgo:go-1.19.x + # - if: steps.image-cache.outputs.cache-hit == 'true' + # run: docker load -i ~/image-cache/xgo.tar + # - name: Build + # run: | + # go install src.techknowlogick.com/xgo@latest + # xgo --targets=darwin/arm64 -tags="nosqlite" -ldflags="-w -s" -buildmode=c-shared -pkg=bind/desktop -out=libgopeed . + # mv libgopeed-*.dylib libgopeed.dylib + # - uses: actions/upload-artifact@v3 + # with: + # name: macos-arm64-lib + # path: libgopeed.dylib + # build-macos: + # runs-on: macos-latest + # needs: [ release, build-macos-arm64-lib ] + # steps: + # - uses: actions/checkout@v3 + # - uses: actions/setup-go@v3 + # with: + # go-version: '^1.19' + # cache: true + # - uses: actions/setup-node@v3 + # with: + # node-version: 16 + # - uses: subosito/flutter-action@v2 + # - name: Install appdmg + # run: npm install -g appdmg + # - uses: actions/download-artifact@v3 + # with: + # name: macos-arm64-lib + # path: ui/flutter/macos/Frameworks + # - name: Build + # env: + # VERSION: ${{ needs.release.outputs.tag_name }} + # run: | + # PROJECT_DIR=$(pwd) - cd ui/flutter - flutter build macos - cd build/macos/Build/Products/Release - cat>appdmg.json<appdmg.json<debian/debian.yaml<debian/debian.yaml<debian/gui/gopeed.desktop<debian/gui/gopeed.desktop<