diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 496be5d..d73489f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,15 +81,36 @@ jobs: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat" ./gradlew nativeImage + - name: Install go-msi + run: choco install -y "go-msi" + - name: Prepare PATH + shell: bash + run: | + echo "::add-path::$WIX\\bin" + echo "::add-path::C:\\Program Files\\go-msi" + - name: Build MSI + id: buildmsi + shell: bash + run: | + mkdir -p "$PWD/build/msi" + go-msi make --msi "$PWD/build/bin/gw.msi" --out "$PWD/build/msi" -k -a amd64 --version "${GITHUB_REF#refs/tags/}" + - name: upload ${{ matrix.os }} image uses: actions/upload-artifact@v2 with: name: gw-${{ matrix.os }} path: build/bin/ +# - uses: actions/upload-artifact@v2 +# with: +# name: workdir +# path: "**" + - name: "Upload Release" uses: softprops/action-gh-release@v1 with: - files: build/bin/gw.exe + files: | + build/bin/gw.exe + build/bin/gw.msi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index e8f8c83..ede92d0 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ A Java version of [gdub](https://github.com/dougborg/gdub) so it can be used on ## Installation -Download from [releases](https://github.com/gschrader/gw/releases) and add to your path. +Download exe from [releases](https://github.com/gschrader/gw/releases) and add to your path, or install the MSI which will install and add to your path for you. ## FAQ diff --git a/wix.json b/wix.json new file mode 100644 index 0000000..90383e2 --- /dev/null +++ b/wix.json @@ -0,0 +1,32 @@ +{ + "product": "gw", + "company": "Glen Schrader", + "license": "LICENSE", + "upgrade-code": "546d4941-1eb2-327e-9352-b570f2c31bd4", + "files": { + "guid": "22eb7502-6a68-3cdd-afcb-1624b07f726c", + "items": [ + "build/bin/gw.exe" + ] + }, + "env": { + "guid": "800232cc-1773-35e5-9e3a-84d69bbb1376", + "vars": [ + { + "name": "PATH", + "value": "[INSTALLDIR]", + "permanent": "yes", + "system": "no", + "action": "set", + "part": "last" + } + ] + }, + "shortcuts": {}, + "choco": { + "description": "A gradlew/gradle wrapper.", + "project-url": "https://github.com/gschrader/gw", + "tags": "gradle gradlew gw", + "license-url": "https://github.com/gschrader/gw/blob/master/LICENSE" + } +}