Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated msi windows installers to use wix v5 #851

Merged
merged 72 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from 67 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
0dc7ad5
First attempt at converting wix/Build.OpenJDK_generic.cmd to .ps1 file
jmjaffe37 Mar 11, 2024
3dd44ad
Updated main + base + hotspot wix xml templates
jmjaffe37 Mar 11, 2024
3fe7cbd
Updated dragonwell + openj9 wix templates to wixv4
jmjaffe37 Mar 11, 2024
3fc05bb
Updated remaining templates to wix v4
jmjaffe37 Mar 12, 2024
c2fce74
Updated extensions used in wix commands
jmjaffe37 Mar 12, 2024
af7f7ea
First attempt at converting to wixv4
jmjaffe37 Mar 12, 2024
b0d976b
No attempting to use wix_heat_directory
jmjaffe37 Apr 3, 2024
93cde4d
Now using wix 4.0.5
jmjaffe37 Apr 3, 2024
3ba44b5
Now placing heat.exe in Resources dir
jmjaffe37 Apr 4, 2024
f678094
updated default heat path and error messages
jmjaffe37 Apr 4, 2024
a818e88
Now adding wix extensions
jmjaffe37 Apr 4, 2024
eed8bf1
Now keeping all heat tools files
jmjaffe37 Apr 4, 2024
64c1c3b
updated default heat path, fixed error message
jmjaffe37 Apr 4, 2024
f35ec13
Removed 'ALLUSERS' property from Main.wxs.template; causing 'duplicat…
jmjaffe37 Apr 4, 2024
3e50487
Changed ID ALLUSERS to ALLUSERSSETUP
jmjaffe37 Apr 4, 2024
3ff5cd5
Updated culture translation
jmjaffe37 Apr 4, 2024
2ea3ec6
Added + updated error messages
jmjaffe37 Apr 4, 2024
d9d4a0a
Updated error message
jmjaffe37 Apr 4, 2024
ac2c8ea
Updated comments and wix.yml
jmjaffe37 Apr 4, 2024
b138ed5
Deleted Build-OpenJDK.ps1
jmjaffe37 Apr 4, 2024
93da458
Attempting to support icedTea again
jmjaffe37 Apr 4, 2024
491580c
now heating jdk8 on single line
jmjaffe37 Apr 4, 2024
2f363ab
Attempting to build with IcedTea
jmjaffe37 Apr 9, 2024
d6c7ac4
Added comments and updated error messages
jmjaffe37 Apr 10, 2024
b5e3123
Added back -sfrag flag and added comments
jmjaffe37 Apr 10, 2024
c055f90
Updated installer version from 200 to 500 to get rid of warning
jmjaffe37 Apr 10, 2024
54c93ab
Updated old source code comments
jmjaffe37 Apr 10, 2024
784c8de
Updated wix/README.md
jmjaffe37 Apr 10, 2024
3c91bde
Seperated heat and build commands out for readability. Now there is 1…
jmjaffe37 Apr 10, 2024
e0d2273
Updated debug and error messages
jmjaffe37 Apr 10, 2024
960e7df
Fixed typo
jmjaffe37 Apr 10, 2024
5af48b9
Now using wix v5 by default
jmjaffe37 Apr 10, 2024
07b7ed9
Added ability for custom output file names
jmjaffe37 Apr 16, 2024
352bf89
Removed old comments
jmjaffe37 Apr 18, 2024
351d7f7
Merge branch 'master' into jmj/wix4_update
jmjaffe37 Apr 19, 2024
d0136da
applied feedback from code review
jmjaffe37 Apr 22, 2024
ad44594
Added xml tagging back
jmjaffe37 Apr 22, 2024
2c000cb
Updated README.md
jmjaffe37 Apr 22, 2024
791cb72
Fixed 'ALLUSERS' property
jmjaffe37 Apr 22, 2024
293dee6
Fixed typo
jmjaffe37 Apr 22, 2024
814a501
Updated wxs spacing and added a comment
jmjaffe37 Apr 22, 2024
7e5c691
Updated README.md with new URL and more md style
jmjaffe37 Apr 23, 2024
9791b53
More md style number bullets
jmjaffe37 Apr 23, 2024
1602161
Added other necessary env vars to README.md
jmjaffe37 Apr 23, 2024
5d1ffd9
Fixed README.md typos
jmjaffe37 Apr 23, 2024
bcc4707
Merge branch 'master' into jmj/wix4_update
gdams Apr 24, 2024
4510eae
Testing changes to fix default installdir
jmjaffe37 Apr 24, 2024
a96f095
Now able to set installation scope
jmjaffe37 Apr 24, 2024
f7ca8d5
Updated comments
jmjaffe37 Apr 24, 2024
18ec3e1
support perUser and perMachine
gdams Apr 30, 2024
0698685
Merge branch 'master' into jmj/wix4_update
gdams Apr 30, 2024
e6bb06a
formatting tweaks
gdams Apr 30, 2024
6f6a569
use API to fetch versions to build
gdams Apr 30, 2024
311d9ea
remove PerUserOrMachine-Example
gdams Apr 30, 2024
ab6da46
Merge branch 'master' into jmj/wix4_update
gdams Apr 30, 2024
434a247
Re-added ability for vendor to choose not to show the end-user licens…
jmjaffe37 Apr 30, 2024
a03a907
Fixed back button
jmjaffe37 Apr 30, 2024
19a400b
Test
jmjaffe37 Apr 30, 2024
40c4f7e
Now installing wix quietly
jmjaffe37 Apr 30, 2024
8243553
Now using format closer to what existed previously
jmjaffe37 Apr 30, 2024
c57f896
Removed test code
jmjaffe37 Apr 30, 2024
6149aef
Added sample code and comment
jmjaffe37 Apr 30, 2024
eb0b678
Added license end-user license behavior section to README.md
jmjaffe37 Apr 30, 2024
ccab40c
Now using env var for vendor
jmjaffe37 May 1, 2024
0507767
Took out vendor logic for end-user license agreements (as requested),…
jmjaffe37 May 1, 2024
375429d
Updated wix installer changelog.md
jmjaffe37 May 2, 2024
00f04bb
Fixed formatting
jmjaffe37 May 2, 2024
1bcb898
Update .github/workflows/wix.yml
gdams May 3, 2024
bd16b79
Updated README.md minimum supported wix version
jmjaffe37 May 3, 2024
35d0e69
formatting tweak
jmjaffe37 May 3, 2024
6d8c0b3
Merge branch 'master' into jmj/wix4_update
jmjaffe37 May 3, 2024
9dd8b96
Merge branch 'master' into jmj/wix4_update
jmjaffe37 May 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 53 additions & 52 deletions .github/workflows/wix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,49 +12,62 @@ permissions:
jobs:
wix:
strategy:
fail-fast: false
matrix:
jdk: [8, 11, 17]
jdk: [8, 11, 17, 21]
arch: [x64]
jvm: [hotspot]
include:
- jdk: 8
ICEDTEA_WEB_VERSION: "icedtea-web-1.8.6"
PRODUCT_MAJOR_VERSION: 8
PRODUCT_MINOR_VERSION: 0
PRODUCT_MAINTENANCE_VERSION: 362
PRODUCT_PATCH_VERSION: 0
PRODUCT_BUILD_NUMBER: "09"
MSI_PRODUCT_VERSION: 8.0.362.9
ARCH: x64
TAG: jdk8u362-b09
SUB_TAG: 8u362b09
JVM: hotspot
- jdk: 11
PRODUCT_MAJOR_VERSION: 11
PRODUCT_MINOR_VERSION: 0
PRODUCT_MAINTENANCE_VERSION: 18
PRODUCT_PATCH_VERSION: 0
PRODUCT_BUILD_NUMBER: 10
MSI_PRODUCT_VERSION: 11.0.18.10
ARCH: x64
TAG: jdk-11.0.18+10
SUB_TAG: 11.0.18_10
JVM: hotspot
- jdk: 17
PRODUCT_MAJOR_VERSION: 17
PRODUCT_MINOR_VERSION: 0
PRODUCT_MAINTENANCE_VERSION: 6
PRODUCT_PATCH_VERSION: 0
PRODUCT_BUILD_NUMBER: 10
MSI_PRODUCT_VERSION: 17.0.6.10
ARCH: x64
TAG: jdk-17.0.6+10
SUB_TAG: 17.0.6_10
JVM: hotspot
- jdk: 8
ICEDTEA_WEB_VERSION: "icedtea-web-1.8.6"
gdams marked this conversation as resolved.
Show resolved Hide resolved
- jdk: 11
arch: x86-32
jvm: hotspot

name: wix
runs-on: windows-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Install wix toolset
run: dotnet tool install --global wix --version 5.0.0 --verbosity quiet

- name: Fetch latest Windows version from Adoptium API
run: |
$response = Invoke-WebRequest -Uri "https://api.adoptium.net/v3/assets/feature_releases/${{ matrix.jdk }}/ga?architecture=x64&image_type=jdk&os=windows&page=0&page_size=1" -UseBasicParsing
$json = $response.Content | ConvertFrom-Json

$major = $json.version_data.major
$minor = $json.version_data.minor
$security = $json.version_data.security
$patch = 0
$build = $json.version_data.build

echo "PRODUCT_MAJOR_VERSION=$major" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
echo "PRODUCT_MINOR_VERSION=$minor" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
echo "PRODUCT_MAINTENANCE_VERSION=$security"| Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
echo "PRODUCT_PATCH_VERSION=$patch" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append

# if jdk8 and build is a single digit, add a 0 to the front
if ($major -eq 8 -and $build -lt 10) {
echo "PRODUCT_BUILD_NUMBER=0$build" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
} else {
echo "PRODUCT_BUILD_NUMBER=$build" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
}
echo "MSI_PRODUCT_VERSION=$major.$minor.$security.$build" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
echo "TAG=$($json.release_name)" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
# SUB_TAG is used to create the file name of the JDK/JRE zip file
# For jdk8 strip the jdk and the - from the release name
if ($major -eq 8) {
$subTag = $json.release_name -replace "jdk", ""
$subTag = $subTag -replace "-", ""
# For JDK9 and above remove jdk- and replace + with _
} else {
$subTag = $json.release_name -replace "jdk-", ""
$subTag = $subTag -replace "\+", "_"
}
echo "SUB_TAG=$subTag" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append

- name: Download IcedTea-Web
run: |
Invoke-WebRequest -Uri "https://github.com/AdoptOpenJDK/IcedTea-Web/releases/download/${{ matrix.ICEDTEA_WEB_VERSION }}/${{ matrix.ICEDTEA_WEB_VERSION }}.win.bin.zip" `
Expand All @@ -67,10 +80,10 @@ jobs:

- name: Download Prebuilt JDK/JRE
run: |
Invoke-WebRequest -Uri "https://github.com/adoptium/temurin${{ matrix.PRODUCT_MAJOR_VERSION }}-binaries/releases/download/${{ matrix.TAG }}/OpenJDK${{ matrix.PRODUCT_MAJOR_VERSION }}U-jdk_${{ matrix.ARCH }}_windows_${{ matrix.JVM }}_${{ matrix.SUB_TAG }}.zip" `
-OutFile "OpenJDK${{ matrix.PRODUCT_MAJOR_VERSION }}U-jdk_${{ matrix.ARCH }}_windows_${{ matrix.JVM }}_${{ matrix.SUB_TAG }}.zip"
Invoke-WebRequest -Uri "https://github.com/adoptium/temurin${{ matrix.PRODUCT_MAJOR_VERSION }}-binaries/releases/download/${{ matrix.TAG }}/OpenJDK${{ matrix.PRODUCT_MAJOR_VERSION }}U-jre_${{ matrix.ARCH }}_windows_${{ matrix.JVM }}_${{ matrix.SUB_TAG }}.zip" `
-OutFile "OpenJDK${{ matrix.PRODUCT_MAJOR_VERSION }}U-jre_${{ matrix.ARCH }}_windows_${{ matrix.JVM }}_${{ matrix.SUB_TAG }}.zip"
Invoke-WebRequest -Uri "https://github.com/adoptium/temurin${{ env.PRODUCT_MAJOR_VERSION }}-binaries/releases/download/${{ env.TAG }}/OpenJDK${{ env.PRODUCT_MAJOR_VERSION }}U-jdk_${{ matrix.ARCH }}_windows_${{ matrix.JVM }}_${{ env.SUB_TAG }}.zip" `
-OutFile "OpenJDK${{ env.PRODUCT_MAJOR_VERSION }}U-jdk_${{ matrix.ARCH }}_windows_${{ matrix.JVM }}_${{ env.SUB_TAG }}.zip"
Invoke-WebRequest -Uri "https://github.com/adoptium/temurin${{ env.PRODUCT_MAJOR_VERSION }}-binaries/releases/download/${{ env.TAG }}/OpenJDK${{ env.PRODUCT_MAJOR_VERSION }}U-jre_${{ matrix.ARCH }}_windows_${{ matrix.JVM }}_${{ env.SUB_TAG }}.zip" `
-OutFile "OpenJDK${{ env.PRODUCT_MAJOR_VERSION }}U-jre_${{ matrix.ARCH }}_windows_${{ matrix.JVM }}_${{ env.SUB_TAG }}.zip"
./CreateSourceFolder.AdoptOpenJDK.ps1
working-directory: wix/SourceDir

Expand All @@ -79,12 +92,6 @@ jobs:
working-directory: wix
env:
PRODUCT_CATEGORY: jdk
PRODUCT_MAJOR_VERSION: ${{ matrix.PRODUCT_MAJOR_VERSION }}
PRODUCT_MINOR_VERSION: ${{ matrix.PRODUCT_MINOR_VERSION }}
PRODUCT_MAINTENANCE_VERSION: ${{ matrix.PRODUCT_MAINTENANCE_VERSION }}
PRODUCT_PATCH_VERSION: ${{ matrix.PRODUCT_PATCH_VERSION }}
PRODUCT_BUILD_NUMBER: ${{ matrix.PRODUCT_BUILD_NUMBER }}
MSI_PRODUCT_VERSION: ${{ matrix.MSI_PRODUCT_VERSION }}
ARCH: ${{ matrix.ARCH }}
JVM: ${{ matrix.JVM }}
shell: cmd
Expand All @@ -94,17 +101,11 @@ jobs:
working-directory: wix
env:
PRODUCT_CATEGORY: jre
PRODUCT_MAJOR_VERSION: ${{ matrix.PRODUCT_MAJOR_VERSION }}
PRODUCT_MINOR_VERSION: ${{ matrix.PRODUCT_MINOR_VERSION }}
PRODUCT_MAINTENANCE_VERSION: ${{ matrix.PRODUCT_MAINTENANCE_VERSION }}
PRODUCT_PATCH_VERSION: ${{ matrix.PRODUCT_PATCH_VERSION }}
PRODUCT_BUILD_NUMBER: ${{ matrix.PRODUCT_BUILD_NUMBER }}
MSI_PRODUCT_VERSION: ${{ matrix.MSI_PRODUCT_VERSION }}
ARCH: ${{ matrix.ARCH }}
JVM: ${{ matrix.JVM }}
shell: cmd

- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: windows-${{ matrix.PRODUCT_MAJOR_VERSION }}
name: windows-${{ env.PRODUCT_MAJOR_VERSION }}-${{ matrix.arch }}
path: wix/ReleaseDir/*.msi
Loading