Compare commits
4
Commits
34c2ff673e
...
3a96031e4b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a96031e4b | ||
|
|
072f8c4e24 | ||
|
|
ec08fb7c14 | ||
|
|
4de9ad813c |
No files matched your search
@@ -39,7 +39,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
macdeployqt ./scwpic.app -dmg
|
macdeployqt ./scwpic.app -dmg
|
||||||
ls
|
ls
|
||||||
- uses: actions/upload-artifact@v6
|
- uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: "macos-bundle"
|
name: "scwpic-macos-latest"
|
||||||
path: "*.dmg"
|
path: "*.dmg"
|
||||||
|
archive: false
|
||||||
@@ -3,36 +3,6 @@ name: Ubuntu CI
|
|||||||
on: [push, pull_request, workflow_dispatch]
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-24-04-build:
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
- name: Install uv
|
|
||||||
uses: astral-sh/setup-uv@v6
|
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
- name: Install MetaGlot
|
|
||||||
run: uv tool install git+https://github.com/SarasasChipWorkshop/metaglot.git
|
|
||||||
- name: Get build dept.
|
|
||||||
run: |
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install cmake qt6-base-dev qt6-svg-dev qt6-tools-dev libexiv2-dev
|
|
||||||
- name: Build it
|
|
||||||
run: |
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ../
|
|
||||||
make
|
|
||||||
cpack -G DEB
|
|
||||||
- name: Try install it
|
|
||||||
run: |
|
|
||||||
cd build
|
|
||||||
sudo apt install ./*.deb
|
|
||||||
- uses: actions/upload-artifact@v6
|
|
||||||
with:
|
|
||||||
name: ubuntu-24.04-deb-package
|
|
||||||
path: build/*.deb
|
|
||||||
|
|
||||||
ubuntu-26-04-build:
|
ubuntu-26-04-build:
|
||||||
runs-on: ubuntu-26.04
|
runs-on: ubuntu-26.04
|
||||||
steps:
|
steps:
|
||||||
@@ -58,7 +28,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
sudo apt install ./*.deb
|
sudo apt install ./*.deb
|
||||||
- uses: actions/upload-artifact@v6
|
- uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ubuntu-26.04-deb-package
|
name: scwpic-ubuntu-26.04
|
||||||
path: build/*.deb
|
path: build/*.deb
|
||||||
|
archive: false
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
modules: 'qtimageformats'
|
modules: 'qtimageformats'
|
||||||
cache: true
|
cache: true
|
||||||
# we need this until miurahr/aqtinstall#1007 ships 3.3.1 for Qt >= 6.11.0 for Windows.
|
# we need this until miurahr/aqtinstall#1007 ships 3.3.1 for Qt >= 6.11.0 for Windows.
|
||||||
aqtsource: 'aqtinstall @ git+https://github.com/miurahr/aqtinstall@16db45a70b5905ad596941b223469bc86a56901a'
|
aqtsource: 'aqtinstall @ git+https://github.com/miurahr/aqtinstall@16db45a70b5905ad596941b223469bc86a56901e'
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
@@ -112,13 +112,15 @@ jobs:
|
|||||||
exit /B 0
|
exit /B 0
|
||||||
:error
|
:error
|
||||||
exit /B 1
|
exit /B 1
|
||||||
- uses: actions/upload-artifact@v6
|
- uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: "scwpic-windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake-setup"
|
name: "scwpic-windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake-setup"
|
||||||
path: pack/inno/scwpic-setup.exe
|
path: pack/inno/scwpic-setup.exe
|
||||||
|
archive: false
|
||||||
# TODO: Enable when start to support MSIX pack.
|
# TODO: Enable when start to support MSIX pack.
|
||||||
# - uses: actions/upload-artifact@v6
|
# - uses: actions/upload-artifact@v7
|
||||||
# with:
|
# with:
|
||||||
# name: "scwpic-windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake"
|
# name: "scwpic-windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake"
|
||||||
# path: pack/msix/scwpic.msix
|
# path: pack/msix/scwpic.msix
|
||||||
|
# archive: false
|
||||||
|
|
||||||
+5
-1
@@ -78,7 +78,11 @@ int main(int argc, char *argv[])
|
|||||||
// Handle dock icon clicks to show hidden window
|
// Handle dock icon clicks to show hidden window
|
||||||
a.connect(&a, &QApplication::applicationStateChanged, [&w](Qt::ApplicationState state) {
|
a.connect(&a, &QApplication::applicationStateChanged, [&w](Qt::ApplicationState state) {
|
||||||
if (state == Qt::ApplicationActive && w.isHidden()) {
|
if (state == Qt::ApplicationActive && w.isHidden()) {
|
||||||
w.showFiles({});
|
// YYC MARK:
|
||||||
|
// We can't use `{}` because there is an ambiguity between 2 overloads:
|
||||||
|
// `void showFiles(const QStringList& files);` and `void showFiles(const QList<QUrl>& urls);`.
|
||||||
|
QStringList emptyFileList;
|
||||||
|
w.showFiles(emptyFileList);
|
||||||
w.galleryCurrent(false);
|
w.galleryCurrent(false);
|
||||||
w.showNormal();
|
w.showNormal();
|
||||||
w.raise();
|
w.raise();
|
||||||
|
|||||||
Reference in new issue
Block a user