Skip to content

WPKG 1.3.2

Choose a tag to compare

@EvilFreelancer EvilFreelancer released this 08 Sep 16:20
· 9 commits to master since this release
3d8adcd

First release since 1.3.1 (2017). It collects the contributions that landed on master plus a fix for the host matching by IP address.

New

  • Extended host attribute matching by makemodel and serial, so host definitions can select machines by the model and the serial number reported by the BIOS. Thanks to Shannon Brooks.
  • Checks of type execute accept a download element. Global package downloads happen just before the first command and are therefore too late for a check. Thanks to Kunzol.
  • Checks of type execute accept a timeout attribute, working the same way as the timeout of an install command. Thanks to Marco Schmidt.
  • New macaddresses extended host attribute listing the MAC addresses of the physical network adapters. Thanks to Kunzol.
  • A Node.js test harness which loads wpkg.js into a VM context with stubbed Windows Script Host globals, so single functions can be tested on any platform. Run it with node --test "tests/*.test.js".

Fixed

  • Only addresses of network adapters which are currently connected are reported as addresses of the host. Windows keeps the last address of an adapter in the registry after its link went down, so a machine which had been connected at another site kept matching the host definition of that site. The connection state is read from WMI; machines where it cannot be determined keep the previous behaviour and report every address found in the registry. Fixes #5, reported by InformatiqueOLLN.
  • The DHCP placeholder address 0.0.0.0 is no longer reported as an address of the host. It was already ignored for statically configured addresses.

Upgrading

Replace wpkg.js on the share. No configuration change is required. Host definitions which relied on the address of a disconnected adapter will stop matching, which is the point of the fix.

Full changelog: 1.3.1...1.3.2