Skip to content

Commit

Permalink
add Windows msi
Browse files Browse the repository at this point in the history
  • Loading branch information
gschrader committed May 23, 2020
1 parent d431fdd commit 7333415
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
32 changes: 32 additions & 0 deletions wix.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 7333415

Please # to comment.