File tree Expand file tree Collapse file tree 4 files changed +31
-3
lines changed Expand file tree Collapse file tree 4 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,11 @@ func BuildMSI(opt Options) (string, error) {
68
68
}
69
69
70
70
if opt .Desktop {
71
- updateOpt .Targets [constant .DesktopTUFTargetName ] = update .DesktopWindowsTarget
71
+ if opt .Architecture == ArchArm64 {
72
+ updateOpt .Targets [constant .DesktopTUFTargetName ] = update .DesktopWindowsArm64Target
73
+ } else {
74
+ updateOpt .Targets [constant .DesktopTUFTargetName ] = update .DesktopWindowsTarget
75
+ }
72
76
// Override default channel with the provided value.
73
77
updateOpt .Targets .SetTargetChannel (constant .DesktopTUFTargetName , opt .DesktopChannel )
74
78
}
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ for system in $SYSTEMS; do
93
93
goarch_value=" arm64"
94
94
fi
95
95
orbit_target=orbit-$system
96
- if [[ $system == " windows" ]]; then
96
+ if [[ $system == " windows" ]] || [[ $system == " windows-arm64 " ]] ; then
97
97
orbit_target=" ${orbit_target} .exe"
98
98
fi
99
99
Original file line number Diff line number Diff line change @@ -179,6 +179,30 @@ if [ -n "$GENERATE_MSI" ]; then
179
179
--update-url=$MSI_TUF_URL
180
180
fi
181
181
182
+ if [ -n " $GENERATE_MSI_ARM64 " ]; then
183
+ echo " Generating msi (arm64)..."
184
+ ./build/fleetctl package \
185
+ --type=msi \
186
+ --arch=arm64 \
187
+ ${FLEET_DESKTOP: +--fleet-desktop} \
188
+ --fleet-url=$MSI_FLEET_URL \
189
+ --enroll-secret=$ENROLL_SECRET \
190
+ ${USE_FLEET_SERVER_CERTIFICATE: +--fleet-certificate=./ tools/ osquery/ fleet.crt} \
191
+ ${USE_UPDATE_SERVER_CERTIFICATE: +--update-tls-certificate=./ tools/ osquery/ fleet.crt} \
192
+ ${INSECURE: +--insecure} \
193
+ ${DEBUG: +--debug} \
194
+ --update-roots=" $ROOT_KEYS " \
195
+ --update-interval=10s \
196
+ --disable-open-folder \
197
+ ${USE_FLEET_CLIENT_CERTIFICATE: +--fleet-tls-client-certificate=./ tools/ test-orbit-mtls/ client.crt} \
198
+ ${USE_FLEET_CLIENT_CERTIFICATE: +--fleet-tls-client-key=./ tools/ test-orbit-mtls/ client.key} \
199
+ ${USE_UPDATE_CLIENT_CERTIFICATE: +--update-tls-client-certificate=./ tools/ test-orbit-mtls/ client.crt} \
200
+ ${USE_UPDATE_CLIENT_CERTIFICATE: +--update-tls-client-key=./ tools/ test-orbit-mtls/ client.key} \
201
+ ${FLEET_DESKTOP_ALTERNATIVE_BROWSER_HOST: +--fleet-desktop-alternative-browser-host=$FLEET_DESKTOP_ALTERNATIVE_BROWSER_HOST } \
202
+ ${ENABLE_SCRIPTS: +--enable-scripts} \
203
+ --update-url=$MSI_TUF_URL
204
+ fi
205
+
182
206
echo " Packages generated."
183
207
184
208
if [[ $OSTYPE == ' darwin' * && -n " $INSTALL_PKG " ]]; then
Original file line number Diff line number Diff line change @@ -52,6 +52,6 @@ if [ -z "$SKIP_SERVER" ]; then
52
52
./tools/tuf/test/run_server.sh
53
53
fi
54
54
55
- if [ -n " $GENERATE_PKG " ] || [ -n " $GENERATE_DEB " ] || [ -n " $GENERATE_RPM " ] || [ -n " $GENERATE_MSI " ] || [ -n " $GENERATE_DEB_ARM64 " ] || [ -n " $GENERATE_RPM_ARM64 " ]; then
55
+ if [ -n " $GENERATE_PKG " ] || [ -n " $GENERATE_DEB " ] || [ -n " $GENERATE_RPM " ] || [ -n " $GENERATE_MSI " ] || [ -n " $GENERATE_DEB_ARM64 " ] || [ -n " $GENERATE_RPM_ARM64 " ] || [ -n " $GENERATE_MSI_ARM64 " ] ; then
56
56
bash ./tools/tuf/test/gen_pkgs.sh
57
57
fi
You can’t perform that action at this time.
0 commit comments