Update installer workflow

This commit is contained in:
JonnyWong16 2020-12-24 15:58:50 -08:00
commit 9c4d97c0f8
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -41,7 +41,13 @@ jobs:
echo ::set-output name=VERSION::0.0.0 echo ::set-output name=VERSION::0.0.0
echo ::set-output name=RELEASE_VERSION::${GITHUB_SHA::7} echo ::set-output name=RELEASE_VERSION::${GITHUB_SHA::7}
fi fi
echo ${GITHUB_REF#refs/heads/} > branch.txt if [[ $GITHUB_REF == refs/tags/*-beta ]]; then
echo "beta" > branch.txt
elif [[ $GITHUB_REF == refs/tags/* ]]; then
echo "master" > branch.txt
else
echo ${GITHUB_REF#refs/heads/} > branch.txt
fi
echo $GITHUB_SHA > version.txt echo $GITHUB_SHA > version.txt
- name: Set Up Python - name: Set Up Python
@ -71,15 +77,14 @@ jobs:
Move-Item dist\updater\* dist\Tautulli\ -Force Move-Item dist\updater\* dist\Tautulli\ -Force
- name: Create Windows Installer - name: Create Windows Installer
uses: joncloud/makensis-action@v1.2 uses: joncloud/makensis-action@v3.4
if: matrix.os == 'windows' if: matrix.os == 'windows'
with: with:
script-file: ./package/Tautulli.nsi script-file: ./package/Tautulli.nsi
arguments: > arguments: >
/DVERSION=${{ steps.get_version.outputs.VERSION_NSIS }} /DVERSION=${{ steps.get_version.outputs.VERSION_NSIS }}
/DINSTALLER_NAME=..\Tautulli-windows-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.exe /DINSTALLER_NAME=..\Tautulli-windows-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.exe
include-more-plugins: true additional-plugin-paths: package/nsis-plugins
include-custom-plugins-path: package/nsis-plugins
- name: Create MacOS Installer - name: Create MacOS Installer
if: matrix.os == 'macos' if: matrix.os == 'macos'