-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
333 changed files
with
22,129 additions
and
11,828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
patreon: bionus | ||
custom: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=bio%2enus%40hotmail%2efr&lc=EN&item_name=Bionus&item_number=Grabber¤cy_code=EUR | ||
custom: https://www.paypal.me/jvasti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
name: CI | ||
on: [push] | ||
|
||
jobs: | ||
Windows: | ||
timeout-minutes: 15 | ||
runs-on: windows-2019 | ||
|
||
env: | ||
MYSQL_VERSION: mysql-5.7.14-win32 | ||
QSCINTILLA_VERSION: QScintilla_gpl-2.10.8 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Set environment | ||
shell: cmd | ||
run: | | ||
echo ::set-env name=GRABBER_VERSION::nightly | ||
echo ::set-env name=GRABBER_IS_NIGHTLY::1 | ||
echo ::set-env name=PLATFORM_NAME::x64 | ||
echo ::set-env name=OPENSSL_ROOT_DIR::%GITHUB_WORKSPACE%\vendor\OpenSSL | ||
echo ::set-env name=MYSQL_INSTALL_DIR::%GITHUB_WORKSPACE%\vendor\%MYSQL_VERSION% | ||
echo ::set-env name=APNG_PLUGIN_DLL::%GITHUB_WORKSPACE%\vendor\APNG\5.12.6\msvc2017\plugins\imageformats\qapng.dll | ||
- name: Vendor cache | ||
uses: actions/cache@v1 | ||
id: vendor-cache | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-vendor-${{ hashFiles('.github/workflows/build.yml') }} | ||
|
||
- name: Create vendor dirs | ||
shell: cmd | ||
run: | | ||
mkdir vendor | ||
mkdir vendor_qt | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v2.1.0 | ||
with: | ||
version: 5.12.6 | ||
|
||
- name: Install QScintilla | ||
working-directory: vendor_qt | ||
shell: cmd | ||
run: | | ||
curl -Lo "%QSCINTILLA_VERSION%.zip" "https://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-2.10.8/%QSCINTILLA_VERSION%.zip" | ||
7z x "%QSCINTILLA_VERSION%.zip" -y | ||
rm "%QSCINTILLA_VERSION%.zip" | ||
cd "%QSCINTILLA_VERSION%\Qt4Qt5" | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 | ||
qmake qscintilla.pro | ||
nmake | ||
nmake install | ||
cd ..\.. | ||
- name: Install OpenSSL | ||
if: steps.vendor-cache.outputs.cache-hit != 'true' | ||
working-directory: vendor | ||
shell: cmd | ||
run: | | ||
curl -Lo OpenSSL.exe https://slproweb.com/download/Win64OpenSSL-1_1_1d.exe | ||
OpenSSL.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="%OPENSSL_ROOT_DIR%" | ||
rm OpenSSL.exe | ||
- name: Download MySQL | ||
if: steps.vendor-cache.outputs.cache-hit != 'true' | ||
working-directory: vendor | ||
shell: cmd | ||
run: | | ||
curl -Lo "%MYSQL_VERSION%.zip" "https://dev.mysql.com/get/Downloads/MySQL-5.7/%MYSQL_VERSION%.zip" | ||
7z x "%MYSQL_VERSION%.zip" -y | ||
rm "%MYSQL_VERSION%.zip" | ||
- name: Download APNG plugin | ||
if: steps.vendor-cache.outputs.cache-hit != 'true' | ||
working-directory: vendor | ||
shell: cmd | ||
run: | | ||
curl -Lo APNG.7z https://install.skycoder42.de/qtmodules/windows_x86/qt5126/qt.qt5.5126.skycoder42.apng.win32_msvc2017/1.1.2-65.12.6.7z | ||
7z x APNG.7z -y -oAPNG | ||
rm APNG.7z | ||
- name: Create build dir | ||
shell: cmd | ||
run: mkdir build | ||
|
||
- name: Configure | ||
working-directory: build | ||
shell: cmd | ||
run: cmake .. -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DNIGHTLY=%GRABBER_IS_NIGHTLY% -DCOMMIT="%GITHUB_SHA%" -DVERSION="%GRABBER_VERSION%" | ||
|
||
- name: Compile | ||
working-directory: build | ||
shell: cmd | ||
run: | | ||
cmake --build . --config Release --target sites | ||
cmake --build . --config Release | ||
- name: Test | ||
shell: cmd | ||
run: build\tests\Release\tests.exe | ||
env: | ||
QTDIR: ${{ env.Qt5_Dir }} | ||
QT_PLUGIN_PATH: ${{ env.Qt5_Dir }}\plugins | ||
|
||
- name: Generate installer | ||
shell: cmd | ||
run: iscc /Q /DMyAppVersion="%GRABBER_VERSION%" /DPlatformName="%PLATFORM_NAME%" /DQtDir="%Qt5_Dir%\bin" /DOpenSSLDir="%OPENSSL_ROOT_DIR%" /DMySQLDir="%MYSQL_INSTALL_DIR%" /DQtApngDll="%APNG_PLUGIN_DLL%" releases\setup.iss | ||
|
||
- name: Upload installer artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: windows-setup | ||
path: releases/Grabber_${{ env.GRABBER_VERSION }}_${{ env.PLATFORM_NAME }}.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,8 +139,6 @@ Sessionx.vim | |
## Temporary | ||
.netrwhist | ||
*~ | ||
## Auto-generated tag files | ||
tags | ||
|
||
## Persistent undo | ||
[._]*.un~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.