Skip to content

Commit

Permalink
#4087 Testing InstallBuilder scenario with GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelsalawa committed May 5, 2021
1 parent b9418e8 commit d153003
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/mac_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
SQLITE_RELEASE_YEAR: '2021'
PORTABLE_DIR: ${{ github.workspace }}/output/portable/SQLiteStudio

name: MaxOSX release build
name: MacOSX release build

on:
repository_dispatch:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/win_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ env:
MINGW_DIR: ../Qt/Tools/mingw810_64
QT_BIN_DIR: ../Qt/5.15.2/mingw81_64/bin
PORTABLE_DIR: output/portable/SQLiteStudio
INSTALLBUILDER_DIR: ../ib
MINGW_URL: https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/tools_mingw/qt.tools.win64_mingw810/8.1.0-1-202004170606x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
DEPS_URL: https://www.dropbox.com/s/2dpem7vy0ee19tu/win64_deps.zip?dl=1
INSTALLBUILDER_URL: https://installbuilder.com/installbuilder-enterprise-21.3.0-windows-x64-installer.exe

name: Windows release build

Expand Down Expand Up @@ -52,6 +54,19 @@ jobs:
with:
ref: ${{ github.event.client_payload.branch }}

- name: Install the InstallBuilder
shell: bash
env:
IB_LICENSE: ${{ secrets.INSTALLER_LICENSE }}
run: |
curl -L ${{ env.INSTALLBUILDER_URL }} --output ib.exe
ib.exe --mode unattended --prefix ${{ env.INSTALLBUILDER_DIR }}
${{ env.INSTALLBUILDER_DIR }}/bin/builder-cli.exe --version
echo "$IB_LICENSE" > lic.xml
ls -l
${{ env.INSTALLBUILDER_DIR }}/bin/builder-cli.exe --license lic.xml --version
abortxyz
- name: Install dependencies
shell: bash
run: |
Expand Down Expand Up @@ -149,6 +164,13 @@ jobs:
run: |
cd $ABSOLUTE_PORTABLE_DIR/..
7z a -r sqlitestudio-$SQLITESTUDIO_VERSION.zip SQLiteStudio
- name: Create installer package
shell: bash
run: |
curl -L ${{ env.INSTALLBUILDER_URL }} --output ib.exe
ib.exe --mode unattended --prefix ${{ env.INSTALLBUILDER_DIR }}
- name: Upload package artifact
uses: actions/upload-artifact@v1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
**/.qmake.stash
**/qrc_*
SQLiteStudio3/SQLiteStudio3.pro.user.4.8-pre1
SQLiteStudio-installer.xml.backup
165 changes: 165 additions & 0 deletions SQLiteStudio-installer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<project>
<shortName>SQLiteStudio</shortName>
<fullName>SQLiteStudio</fullName>
<version>3.4.0</version>
<licenseFile>${src_prefix}/LICENSE</licenseFile>
<leftImage>${src_prefix}/SQLiteStudio3/guiSQLiteStudio/img/sqlitestudio_installer.png</leftImage>
<splashImage>${src_prefix}/SQLiteStudio3/guiSQLiteStudio/img/sqlitestudio_logo.png</splashImage>
<componentList>
<component>
<name>default</name>
<description>Default Component</description>
<canBeEdited>1</canBeEdited>
<selected>1</selected>
<show>1</show>
<folderList>
<folder>
<description>Program Files</description>
<destination>${installdir}</destination>
<name>programfiles</name>
<platforms>all</platforms>
<shortcutList>
<shortcut>
<comment>Uninstall</comment>
<exec>${installdir}/${uninstallerName}</exec>
<icon></icon>
<name>Uninstall ${product_fullname}</name>
<path>${installdir}</path>
<platforms>all</platforms>
<runAsAdmin>0</runAsAdmin>
<runInTerminal>0</runInTerminal>
<windowsExec>${installdir}/${uninstallerName}.exe</windowsExec>
<windowsExecArgs></windowsExecArgs>
<windowsIcon></windowsIcon>
<windowsPath>${installdir}</windowsPath>
</shortcut>
</shortcutList>
</folder>
<folder>
<description>Program Files</description>
<destination>${installdir}</destination>
<name>programfileslinux64</name>
<platforms>linux-x64</platforms>
<distributionFileList>
<distributionFile>
<allowWildcards>1</allowWildcards>
<origin>${bin_prefix}/*</origin>
</distributionFile>
</distributionFileList>
</folder>
<folder>
<description>Program Files</description>
<destination>${installdir}</destination>
<name>programfileswindows64</name>
<platforms>windows-x64</platforms>
<distributionFileList>
<distributionFile>
<allowWildcards>1</allowWildcards>
<origin>${bin_prefix}/*</origin>
</distributionFile>
</distributionFileList>
</folder>
<folder>
<description>Program Files</description>
<destination>${installdir}</destination>
<name>programfilesosx</name>
<platforms>osx</platforms>
<distributionFileList>
<distributionFile>
<allowWildcards>1</allowWildcards>
<origin>${bin_prefix}/*</origin>
</distributionFile>
</distributionFileList>
</folder>
</folderList>
<startMenuShortcutList>
<startMenuShortcut>
<comment>Uninstall ${product_fullname}</comment>
<name>Uninstall ${product_fullname}</name>
<runAsAdmin>0</runAsAdmin>
<runInTerminal>0</runInTerminal>
<windowsExec>${installdir}/${uninstallerName}.exe</windowsExec>
<windowsExecArgs></windowsExecArgs>
<windowsIcon></windowsIcon>
<windowsPath>${installdir}/</windowsPath>
</startMenuShortcut>
<startMenuShortcut>
<comment>Run ${product_shortname}</comment>
<name>${product_shortname}</name>
<runAsAdmin>0</runAsAdmin>
<runInTerminal>0</runInTerminal>
<windowsExec>${installdir}/${product_shortname}.exe</windowsExec>
<windowsExecArgs></windowsExecArgs>
<windowsIcon>${src_prefix}/SQLiteStudio3/guiSQLiteStudio/img/sqlitestudio.ico</windowsIcon>
<windowsPath></windowsPath>
</startMenuShortcut>
</startMenuShortcutList>
</component>
</componentList>
<preBuildActionList>
<setInstallerVariable>
<name>src_prefix</name>
<value>${env(INSTALLER_SRC_PREFIX)}</value>
<ruleList>
<compareText>
<logic>does_not_equal</logic>
<text>${env(INSTALLER_SRC_PREFIX)}</text>
<value></value>
</compareText>
</ruleList>
</setInstallerVariable>
<setInstallerVariable>
<name>src_prefix</name>
<value>C:/projects/sqlitestudio-master</value>
<ruleList>
<compareText>
<logic>equals</logic>
<text>${env(INSTALLER_BIN_PREFIX)}</text>
<value></value>
</compareText>
</ruleList>
</setInstallerVariable>
<setInstallerVariable>
<name>bin_prefix</name>
<value>${env(INSTALLER_SRC_PREFIX)}</value>
<ruleList>
<compareText>
<logic>does_not_equal</logic>
<text>${env(INSTALLER_SRC_PREFIX)}</text>
<value></value>
</compareText>
</ruleList>
</setInstallerVariable>
<setInstallerVariable>
<name>bin_prefix</name>
<value>C:/projects/sqlitestudio-master/output/SQLiteStudio</value>
<ruleList>
<compareText>
<logic>equals</logic>
<text>${env(INSTALLER_BIN_PREFIX)}</text>
<value></value>
</compareText>
</ruleList>
</setInstallerVariable>
</preBuildActionList>
<compressionAlgorithm>lzma-ultra</compressionAlgorithm>
<enableRollback>1</enableRollback>
<enableTimestamp>1</enableTimestamp>
<vendor>sqlitestudio.pl</vendor>
<windowsExecutableIcon>${src_prefix}/SQLiteStudio3/guiSQLiteStudio/img/sqlitestudio_opt.ico</windowsExecutableIcon>
<parameterList>
<directoryParameter>
<name>installdir</name>
<description>Installer.Parameter.installdir.description</description>
<explanation>Installer.Parameter.installdir.explanation</explanation>
<value></value>
<default>${platform_install_prefix}/${product_shortname}</default>
<allowEmptyValue>0</allowEmptyValue>
<cliOptionName>prefix</cliOptionName>
<mustBeWritable>1</mustBeWritable>
<mustExist>0</mustExist>
<width>40</width>
</directoryParameter>
</parameterList>
</project>

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit d153003

Please sign in to comment.