Skip to content

Commit

Permalink
win
Browse files Browse the repository at this point in the history
  • Loading branch information
HamedMasafi committed Aug 23, 2020
1 parent c35a4e9 commit 0faaf9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/qt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
- gcc_64
- msvc2019
- msvc2019_64
- mingw81_64
- mingw81_32
- clang_64

include:
Expand All @@ -31,12 +29,6 @@ jobs:
os: windows-latest
osname: windows
arch: x86
- platform: mingw81_64
os: windows-latest
arch: x86_64
- platform: mingw81_32
os: windows-latest
arch: x86_64
- platform: clang_64
os: macos-latest
osname: macos
Expand All @@ -63,14 +55,13 @@ jobs:
${{steps.qt.outputs.make}}
${{steps.qt.outputs.make}} install
- name: Build installer for linux
if: matrix.osname != ''
- name: Build installer
run: |
installer/init ${{steps.qt.outputs.qtdir}} ${{matrix.osname}} ${{matrix.arch}}
- name: upload app to releases
uses: Skycoder42/action-upload-release@master
if: startsWith(github.ref, 'refs/tags/') && (matrix.osname == 'linux' || matrix.osname == 'macos')
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
directory: installer/${{matrix.osname}}/output
Expand Down
11 changes: 9 additions & 2 deletions installer/init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ set arch=%3

set pwd=%~dp0
set out_path=%pwd%\output
set data_path="%pwd%\packages\ir.tooska.confiqt\data\"
set data_path=%pwd%\packages\ir.tooska.confiqt\data\

rem create_paths
mkdir %out_path%

rem copy files
xcopy /y /q %pwd%\QtConfig.exe %data_path%
xcopy /y /q %pwd%\..\release\QtConfig.exe %data_path%

echo Copying files to data dir
if %arch%==x86 (
%qt_path%\5.15.0\msvc2019\bin\windeployqt.exe --verbose 0 %data_path%
) else (
%qt_path%\5.15.0\msvc2019_64\bin\windeployqt.exe --verbose 0 %data_path%
)

rem make setup
set binary_creator=%qt_path%\Tools\QtInstallerFramework\3.2\bin\binarycreator.exe
Expand Down

0 comments on commit 0faaf9b

Please sign in to comment.