mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Compare commits
5 Commits
436cf0d14c
...
e726a45dcf
Author | SHA1 | Date | |
---|---|---|---|
e726a45dcf | |||
713566054d | |||
e6f9f5fba9 | |||
d61528c33f | |||
5eb0dfc9b1 |
@ -1,4 +1,4 @@
|
||||
version: 13.15.{build}
|
||||
version: 13.16.{build}
|
||||
|
||||
configuration:
|
||||
- Release
|
||||
|
8
.github/workflows/android.yml
vendored
8
.github/workflows/android.yml
vendored
@ -8,12 +8,12 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
name: GPXSee
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: set up JDK 11
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '11'
|
||||
@ -47,7 +47,7 @@ jobs:
|
||||
- name: Build project
|
||||
run: make -j2 apk
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: GPXSee-arm64_v8a.apk
|
||||
path: android-build/build/outputs/apk/debug/android-build-debug.apk
|
||||
|
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
8
.github/workflows/osx.yml
vendored
8
.github/workflows/osx.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
@ -25,7 +25,7 @@ jobs:
|
||||
- name: Create DMG
|
||||
run: macdeployqt GPXSee.app -dmg -appstore-compliant
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: GPXSee-qt5.dmg
|
||||
path: GPXSee.dmg
|
||||
@ -35,7 +35,7 @@ jobs:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
@ -50,7 +50,7 @@ jobs:
|
||||
- name: Create DMG
|
||||
run: macdeployqt GPXSee.app -dmg -appstore-compliant
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: GPXSee-qt6.dmg
|
||||
path: GPXSee.dmg
|
||||
|
@ -3,7 +3,7 @@ unix:!macx:!android {
|
||||
} else {
|
||||
TARGET = GPXSee
|
||||
}
|
||||
VERSION = 13.15
|
||||
VERSION = 13.16
|
||||
|
||||
|
||||
QT += core \
|
||||
|
@ -12,7 +12,7 @@ public class Activity extends org.qtproject.qt.android.bindings.QtActivity
|
||||
|
||||
public String intentPath()
|
||||
{
|
||||
String path = "";
|
||||
String path = null;
|
||||
|
||||
Intent intent = getIntent();
|
||||
if (intent != null) {
|
||||
|
@ -37,7 +37,7 @@ Unicode true
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "13.15"
|
||||
!define VERSION "13.16"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <QNetworkProxyFactory>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QLibraryInfo>
|
||||
#include <QSurfaceFormat>
|
||||
#include <QImageReader>
|
||||
#include <QFileInfo>
|
||||
#ifdef Q_OS_ANDROID
|
||||
@ -58,10 +57,6 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
||||
"QThreadStorage: Thread X exited after QThreadStorage Y destroyed" */
|
||||
Downloader::setNetworkManager(new QNetworkAccessManager(this));
|
||||
DEM::setDir(ProgramPaths::demDir());
|
||||
QSurfaceFormat fmt;
|
||||
fmt.setStencilBufferSize(8);
|
||||
fmt.setSamples(4);
|
||||
QSurfaceFormat::setDefaultFormat(fmt);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
QImageReader::setAllocationLimit(0);
|
||||
#endif // QT6
|
||||
|
15
src/main.cpp
15
src/main.cpp
@ -1,3 +1,5 @@
|
||||
#include <QtGlobal>
|
||||
#include <QSurfaceFormat>
|
||||
#include "GUI/app.h"
|
||||
#include "GUI/timezoneinfo.h"
|
||||
|
||||
@ -12,6 +14,19 @@ int main(int argc, char *argv[])
|
||||
qRegisterMetaType<TimeZoneInfo>("TimeZoneInfo");
|
||||
#endif // QT6
|
||||
|
||||
QSurfaceFormat fmt;
|
||||
fmt.setProfile(QSurfaceFormat::CoreProfile);
|
||||
#ifdef Q_OS_ANDROID
|
||||
fmt.setRenderableType(QSurfaceFormat::OpenGLES);
|
||||
#else // Android
|
||||
fmt.setVersion(3, 2);
|
||||
fmt.setRenderableType(QSurfaceFormat::OpenGL);
|
||||
#endif // Android
|
||||
fmt.setDepthBufferSize(24);
|
||||
fmt.setStencilBufferSize(8);
|
||||
fmt.setSamples(4);
|
||||
QSurfaceFormat::setDefaultFormat(fmt);
|
||||
|
||||
App app(argc, argv);
|
||||
return app.run();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user