Adds Windows functionality to the project#2
Merged
Merged
Conversation
Use an externalized powershell script (install_postman.ps1) to run the install: 1. Externalizing allows easier linting 2. Postman's use of Squirrel and expectation that installs will go to %localappdata%\Postman effectively necessitates use of a home-brewed installation script to work around the EXE's own limitations.
* Update `.../install_postman.ps1` script so that it will block when trying to install if there's already an installation and the installation is the same version as the to-be-installed version * Update `.../win_install.sls` state-file so that it uses a suitable requisite evaluation to determine if the to-be-installed version would be a reinstall of any present installed versions
Default values for `version` parameter:
* Windows and Linux distros other than EL9:
version: 'latest'
* RHEL9 and derivative Linux distros:
version: '10.24.26'
When re-running the formula to install a different version than is
already installed, it leaves behind an `{{ install_root }}\app-X.Y.Z
directory. Each such directory can be 0.5GiB or more. This update
attempts to ensure no such orphans exist after a different version is
installed in place of an existing version
* Ensure proper security-setting on `install_root` * Suppress attempts at auto-updating (users can't do it, any way, given the installation-location and associated security-settings) * Add app-specific exclusion to Process Mitigation security controls
* Ensure all users have a "Postman" launcher-icon on their desktops * Ensure all users have a "Postman" launcher-icon in their start menues * Set up system-registry to ensure protocol deep-linking
Fixes state verification failures for Windows shortcuts. explicitly declares 'icon_location' and 'icon_index' parameters within the native 'shortcut.present' resource definitions. This supplies the validation-query with explicit metadata to match against Windows COM API inspection returns, preventing false-positive state failures under Session 0 headless contexts (avoiding the need to resort to cmd.run kludgery)
The `service` and `subcomponent` directories are derived from execution of the https://github.com/saltstack-formulas/template-formula project's bin/convert-formula.sh script but aren't necessary for this formula
While we're here, change state-IDs to use "capital-case"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See CHANGELOG.md for summary of changes