* Use standard Linux directories for application data (https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard) * Use standard system directories * Cleanup all Polaris files during uninstall * Expose get_pid_directory to rest of the crate * Add separate targets for install binary and data files, clean up makefile * Use environment variables for directory locations during install process * On Linux, read locations from environment variables at compile time * Split static_directory in two (web and swagger directories) * Follow recommendations from the Make manual * Avoid redundant directories * Added workflow to validate installer setup * Added CLI options to locate log file, pid file and cache directory * Fixed an issue where build command did not support the xdg/system switch * Renamed log option to log-level * Fixed an issue where xdg install would do a system build * Use re-usable action to make linux release * Avoid nested actions (see https://github.com/actions/runner/issues/646) * Updated installation instructions * Replaced deprecated use of set-env
28 lines
923 B
YAML
28 lines
923 B
YAML
name: 'Make a Windows Release'
|
|
description: 'Creates archive containing files to install Polaris on on a Windows system'
|
|
inputs:
|
|
version-number:
|
|
description: 'Polaris version number'
|
|
required: true
|
|
default: '0.0'
|
|
output-file:
|
|
description: 'File path where the resulting installer should be stored'
|
|
required: false
|
|
default: 'polaris.msi'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Download Polaris Web
|
|
run: |
|
|
curl -L -o web.zip https://github.com/agersant/polaris-web/releases/latest/download/web.zip
|
|
unzip web.zip
|
|
shell: bash
|
|
- name: Set Polaris Version
|
|
run: echo "POLARIS_VERSION=${{ inputs.version-number }}" >> $GITHUB_ENV
|
|
shell: bash
|
|
- name: Build Installer
|
|
run: res/windows/release_script
|
|
shell: pwsh
|
|
- name: Copy installer to output location
|
|
run: cp release/polaris.msi ${{ inputs.output-file }}
|
|
shell: bash
|