From 3feaedd0fa7e2c8b4966b250f1b22ec394b93ba1 Mon Sep 17 00:00:00 2001 From: S M Y <smy.altamash@gmail.com> Date: Wed, 16 Oct 2019 10:25:52 +0530 Subject: [PATCH] Variablize the installer type and give absolute path instead of relative path for artifact name --- .../templates/setupOfflineInstaller.sh.j2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ansible/roles/offline-installer/templates/setupOfflineInstaller.sh.j2 b/ansible/roles/offline-installer/templates/setupOfflineInstaller.sh.j2 index 207617350..3a709d8dd 100644 --- a/ansible/roles/offline-installer/templates/setupOfflineInstaller.sh.j2 +++ b/ansible/roles/offline-installer/templates/setupOfflineInstaller.sh.j2 @@ -5,24 +5,24 @@ npm install -g n n 8.16 cd /project/src -if [ "windows32" != "windows32" ]; +if [ "{{offline_installer_type}}" != "windows32" ]; then #Build the offline installer npm install npm run dist fi -if [ "windows32" == "windows32" ]; +if [ "{{offline_installer_type}}" == "windows32" ]; then npm run dist npm run dist-win32 cp '/project/src/dist/1.0.0/win/ia32/DIKSHA Setup 1.0.0.exe' ../offline_artifacts/{{time}}/ -elif [ "windows32" == "windows64" ]; +elif [ "{{offline_installer_type}}" == "windows64" ]; then npm run dist-win64 - cp 'dist/1.0.0/win/x64/DIKSHA Setup 1.0.0.exe' ../offline_artifacts/{{time}}/ -elif [ "windows32" == "debian" ]; + cp '/project/src/dist/1.0.0/win/x64/DIKSHA Setup 1.0.0.exe' ../offline_artifacts/{{time}}/ +elif [ "{{offline_installer_type}}" == "debian" ]; then npm run dist-linux - cp dist/1.0.0/linux/x64/DIKSHA_1.0.0_amd64.deb ../offline_artifacts/{{time}}/ + cp '/project/src/dist/1.0.0/linux/x64/DIKSHA_1.0.0_amd64.deb' ../offline_artifacts/{{time}}/ fi -- GitLab