Compare commits

..
6 Commits
294 changed files with 6349 additions and 17028 deletions

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
ko_fi: blumia
custom: ["https://blumia.itch.io/pineapple-pictures"]
+4 -5
View File
@@ -18,7 +18,7 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.12.0'
version: '6.11.2'
modules: 'qtimageformats'
cache: true
- name: Install Conan and Dependencies
@@ -37,10 +37,9 @@ jobs:
cmake --build --preset conan-release
- name: Deploy
run: |
macdeployqt ./scwpic.app -dmg
macdeployqt ./ppic.app -dmg
ls
- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@v6
with:
name: "scwpic-macos-latest"
name: "macos-bundle"
path: "*.dmg"
archive: false
+1 -1
View File
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v5
+4 -5
View File
@@ -3,8 +3,8 @@ name: Ubuntu CI
on: [push, pull_request, workflow_dispatch]
jobs:
ubuntu-26-04-build:
runs-on: ubuntu-26.04
ubuntu-24-04-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Install uv
@@ -28,8 +28,7 @@ jobs:
run: |
cd build
sudo apt install ./*.deb
- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@v6
with:
name: scwpic-ubuntu-26.04
name: ubuntu-24.04-deb-package
path: build/*.deb
archive: false
+20 -52
View File
@@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
include:
- qt_ver: '6.12.0'
- qt_ver: '6.11.2'
vs: '2022'
aqt_arch: 'win64_msvc2022_64'
msvc_arch: 'x64'
@@ -31,7 +31,7 @@ jobs:
modules: 'qtimageformats'
cache: true
# 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@16db45a70b5905ad596941b223469bc86a56901e'
aqtsource: 'aqtinstall @ git+https://github.com/miurahr/aqtinstall@16db45a70b5905ad596941b223469bc86a56901a'
- name: Build
shell: cmd
run: |
@@ -45,9 +45,9 @@ jobs:
set CMAKE_PREFIX_PATH=%PWD%/dependencies_bin
mkdir dependencies_src
echo ::group::===== exiv2 =====
curl -fsSL -o exiv2_bin.zip https://github.com/Exiv2/exiv2/releases/download/v0.28.9/exiv2-0.28.9-2022msvc-AMD64.zip
curl -fsSL -o exiv2_bin.zip https://github.com/Exiv2/exiv2/releases/download/v0.28.7/exiv2-0.28.7-2022msvc-AMD64.zip
7z x exiv2_bin.zip -y
ren .\exiv2-0.28.9-2022msvc-AMD64 dependencies_bin
ren .\exiv2-0.28.7-2022msvc-AMD64 dependencies_bin
echo ::endgroup::
echo ::group::===== zlib =====
curl -fsSL -o zlib_src.zip https://github.com/madler/zlib/releases/download/v1.3.2/zlib132.zip
@@ -57,21 +57,21 @@ jobs:
cmake --build build_dependencies/zlib --config Release --target=install || goto :error
echo ::endgroup::
echo ::group::===== AOM for libavif AVI decoding support =====
git clone -q -b v3.15.3 --depth 1 https://aomedia.googlesource.com/aom dependencies_src/aom
git clone -q -b v3.13.1 --depth 1 https://aomedia.googlesource.com/aom dependencies_src/aom
cmake ./dependencies_src/aom -Bbuild_dependencies/aom -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DENABLE_DOCS=OFF -DBUILD_SHARED_LIBS=ON -DAOM_TARGET_CPU=generic -DENABLE_TESTS=OFF -DENABLE_TESTDATA=OFF -DENABLE_TOOLS=OFF -DENABLE_EXAMPLES=0 || goto :error
cmake --build build_dependencies/aom --config Release --target=install || goto :error
echo ::endgroup::
echo ::group::===== libavif =====
curl -fsSL -o libavif_src.zip https://github.com/AOMediaCodec/libavif/archive/v1.4.2.zip
7z x libavif_src.zip -y -o"dependencies_src"
ren .\dependencies_src\libavif-1.4.2 libavif || goto :error
cmake ./dependencies_src/libavif -Bbuild_dependencies/libavif -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DAVIF_CODEC_AOM=SYSTEM -DAVIF_CODEC_AOM_DECODE=ON -DAVIF_CODEC_AOM_ENCODE=ON -DAVIF_LIBYUV=LOCAL || goto :error
curl -fsSL -o libavif-v1_3_0.zip https://github.com/AOMediaCodec/libavif/archive/v1.3.0.zip
7z x libavif-v1_3_0.zip -y -o"dependencies_src"
ren .\dependencies_src\libavif-1.3.0 libavif || goto :error
cmake ./dependencies_src/libavif -Bbuild_dependencies/libavif -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DAVIF_CODEC_AOM=SYSTEM -DAVIF_CODEC_AOM_DECODE=ON -DAVIF_CODEC_AOM_ENCODE=ON -DAVIF_LIBYUV=LOCAL
cmake --build build_dependencies/libavif --config Release --target=install || goto :error
echo ::endgroup::
echo ::group::===== expat =====
curl -fsSL -o expat_src.zip https://github.com/libexpat/libexpat/archive/R_2_10_0.zip
curl -fsSL -o expat_src.zip https://github.com/libexpat/libexpat/archive/R_2_7_3.zip
7z x expat_src.zip -y -o"dependencies_src"
ren .\dependencies_src\libexpat-R_2_10_0 expat || goto :error
ren .\dependencies_src\libexpat-R_2_7_3 expat || goto :error
cmake ./dependencies_src/expat/expat -Bbuild_dependencies/expat -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
cmake --build build_dependencies/expat --config Release --target=install || goto :error
echo ::endgroup::
@@ -91,50 +91,18 @@ jobs:
cmake --build build_dependencies/kimageformats --config Release --target=install || goto :error
echo ::endgroup::
:: ------ app ------
echo ::group::===== App Build =====
:: YYC MARK: The GitHub runner preinstalls Inno Setup 6.7.1; align the metaglot
:: inno rendering with it via the Inno Setup version cache variable.
:: May remove or change it once GitHub updates its preinstalls to Inno Setup 7 series.
cmake -Bbuild . -DINNO_SETUP_VERSION=6 || goto :error
cmake --build build --config Release || goto :error
cmake --install build --config Release --prefix "%PWD%\build" || goto :error
echo ::group::===== App (Build'n'Install) =====
cmake -Bbuild .
cmake --build build --config Release
cmake --install build --config Release --prefix "%PWD%\build"
echo ::endgroup::
:: ------ pkg ------
windeployqt --verbose=2 --no-compiler-runtime --no-quick-import --no-translations --no-network --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation build\bin\scwpic.exe
windeployqt --verbose=2 --no-compiler-runtime --no-quick-import --no-translations --no-network --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation build\bin\ppic.exe
robocopy ./dependencies_bin/bin build/bin *.dll
if ErrorLevel 8 goto :error
if ErrorLevel 8 (exit /B 1)
copy LICENSE build\bin
mkdir pack
echo ::group::===== App InnoSetup Pack =====
mkdir pack\inno
iscc "/DPublishDir=%CD%\build\bin" "/DOutputDir=%CD%\pack\inno" build\inno-metadata\scwpic.iss || goto :error
echo ::endgroup::
echo ::group::===== App MSIX Pack =====
mkdir pack\msix\staging
robocopy build\msix-metadata pack\msix\staging AppxManifest.xml
if ErrorLevel 8 goto :error
robocopy build\msix-metadata\Strings pack\msix\staging\Strings /E
if ErrorLevel 8 goto :error
robocopy dist\winmsix-icons pack\msix\staging\Assets /E
if ErrorLevel 8 goto :error
robocopy build\bin pack\msix\staging\MyApp /E
if ErrorLevel 8 goto :error
MakePri.exe createconfig /cf pack\msix\priconfig.xml /dq en-US /o || goto :error
pwsh -NoProfile -ExecutionPolicy Bypass -File dist\strip-priconfig-packaging-node.ps1 -Path pack\msix\priconfig.xml -Verbose || goto :error
MakePri.exe new /pr pack\msix\staging /cf pack\msix\priconfig.xml /mn pack\msix\staging\AppxManifest.xml /of pack\msix\staging\resources.pri /o || goto :error
MakeAppx.exe pack /l /o /v /h SHA512 /d pack\msix\staging /p pack\msix\scwpic.msix || goto :error
echo ::endgroup::
exit /B 0
:error
exit /B 1
- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@v6
with:
name: "scwpic-windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake-setup"
path: pack/inno/scwpic-setup.exe
archive: false
- uses: actions/upload-artifact@v7
with:
name: "scwpic-windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake"
path: pack/msix/scwpic.msix
archive: false
name: "windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake-package"
path: build/bin/*
+57 -133
View File
@@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.16)
project(sarasacw-picture VERSION 1.6.0) # don't forget to update NEWS file and AppStream metadata.
project(pineapple-pictures VERSION 1.6.0) # don't forget to update NEWS file and AppStream metadata.
include(GNUInstallDirs)
include(FeatureSummary)
@@ -20,7 +20,7 @@ set (CMAKE_AUTOUIC ON)
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
set (QT_MINIMUM_VERSION "6.8")
set (QT_MINIMUM_VERSION "6.5")
find_package(Qt${QT_VERSION_MAJOR} ${QT_MINIMUM_VERSION} REQUIRED
COMPONENTS Widgets Svg SvgWidgets LinguistTools
@@ -37,7 +37,7 @@ if (EXIV2_METADATA_SUPPORT)
)
endif ()
set (SCWPIC_CPP_FILES
set (PPIC_CPP_FILES
app/main.cpp
app/mainwindow.cpp
app/actionmanager.cpp
@@ -58,7 +58,7 @@ set (SCWPIC_CPP_FILES
app/playlistscouts/explorerscout.cpp
)
set (SCWPIC_HEADER_FILES
set (PPIC_HEADER_FILES
app/mainwindow.h
app/actionmanager.h
app/graphicsview.h
@@ -78,57 +78,56 @@ set (SCWPIC_HEADER_FILES
app/playlistscouts/explorerscout.h
)
set (SCWPIC_UI_FILES
set (PPIC_UI_FILES
app/settingsdialog.ui
app/aboutdialog.ui
app/metadatadialog.ui
app/mainwindow.ui
)
set (SCWPIC_QRC_FILES
set (PPIC_QRC_FILES
assets/resources.qrc
)
set (SCWPIC_RC_FILES
set (PPIC_RC_FILES
# yeah, it's empty.
)
set (EXE_NAME scwpic)
set (EXE_NAME ppic)
# Translation
file (GLOB SCWPIC_TS_FILES locales/app/*.ts)
set (SCWPIC_CPP_FILES_FOR_I18N ${SCWPIC_CPP_FILES})
file (GLOB PPIC_TS_FILES locales/app/*.ts)
set (PPIC_CPP_FILES_FOR_I18N ${PPIC_CPP_FILES})
find_program (METAGLOT_EXECUTABLE metaglot)
if (NOT METAGLOT_EXECUTABLE)
message (FATAL_ERROR "metaglot is required to render the localized metadata, install it from https://github.com/SarasasChipWorkshop/metaglot")
find_program (UV_EXECUTABLE uv)
if (NOT UV_EXECUTABLE)
message (FATAL_ERROR "uv is required to run the metaglot tool, install it from https://docs.astral.sh/uv/")
endif ()
if (WIN32)
# Setup Windows RC files
set (SCWPIC_RC_TEMPLATE_FILE ${CMAKE_CURRENT_BINARY_DIR}/sarasacw-picture.rc.in)
set (PPIC_RC_TEMPLATE_FILE ${CMAKE_CURRENT_BINARY_DIR}/pineapple-pictures.rc.in)
execute_process (
COMMAND ${METAGLOT_EXECUTABLE} render rc
--manifest ${CMAKE_SOURCE_DIR}/dist/sarasacw-picture.rc.in.toml
COMMAND ${UV_EXECUTABLE} tool run metaglot render rc
--manifest ${CMAKE_SOURCE_DIR}/dist/pineapple-pictures.rc.in.toml
--po ${CMAKE_SOURCE_DIR}/locales/winrc/*.po
--template ${CMAKE_SOURCE_DIR}/dist/sarasacw-picture.rc.in.liquid
--output ${SCWPIC_RC_TEMPLATE_FILE}
--template ${CMAKE_SOURCE_DIR}/dist/pineapple-pictures.rc.in.liquid
--output ${PPIC_RC_TEMPLATE_FILE}
RESULT_VARIABLE METAGLOT_RESULT
)
if (NOT METAGLOT_RESULT EQUAL 0)
message (FATAL_ERROR "Failed to generate Windows RC file template via MetaGlot (exit code: ${METAGLOT_RESULT}).")
message (FATAL_ERROR "Failed to generate pineapple-pictures.rc.in via MetaGlot (exit code: ${METAGLOT_RESULT}). If it is not installed yet, run: uv tool install git+https://github.com/SarasasChipWorkshop/metaglot.git")
endif ()
configure_file (${SCWPIC_RC_TEMPLATE_FILE} ${CMAKE_CURRENT_BINARY_DIR}/sarasacw-picture.rc @ONLY)
list (APPEND SCWPIC_RC_FILES ${CMAKE_CURRENT_BINARY_DIR}/sarasacw-picture.rc)
configure_file (${PPIC_RC_TEMPLATE_FILE} ${CMAKE_CURRENT_BINARY_DIR}/pineapple-pictures.rc @ONLY)
list (APPEND PPIC_RC_FILES ${CMAKE_CURRENT_BINARY_DIR}/pineapple-pictures.rc)
endif ()
add_executable (${EXE_NAME}
${SCWPIC_HEADER_FILES}
${SCWPIC_CPP_FILES}
${SCWPIC_UI_FILES}
${SCWPIC_QRC_FILES}
${SCWPIC_RC_FILES}
${PPIC_HEADER_FILES}
${PPIC_CPP_FILES}
${PPIC_UI_FILES}
${PPIC_QRC_FILES}
${PPIC_RC_FILES}
)
set(ADD_TRANSLATIONS_ADDITIONAL_ARGS)
@@ -138,24 +137,17 @@ if (Qt6_VERSION VERSION_GREATER_EQUAL "6.9.0")
endif()
if (TRANSLATION_RESOURCE_EMBEDDING)
qt_add_translations(${EXE_NAME} ${ADD_TRANSLATIONS_ADDITIONAL_ARGS} TS_FILES ${SCWPIC_TS_FILES})
qt_add_translations(${EXE_NAME} ${ADD_TRANSLATIONS_ADDITIONAL_ARGS} TS_FILES ${PPIC_TS_FILES})
else()
qt_add_translations(${EXE_NAME} ${ADD_TRANSLATIONS_ADDITIONAL_ARGS} TS_FILES ${SCWPIC_TS_FILES} QM_FILES_OUTPUT_VARIABLE SCWPIC_QM_FILES)
qt_add_translations(${EXE_NAME} ${ADD_TRANSLATIONS_ADDITIONAL_ARGS} TS_FILES ${PPIC_TS_FILES} QM_FILES_OUTPUT_VARIABLE PPIC_QM_FILES)
endif()
# YYC MARK:
# We use this to disable that Qt UIC generate code like `QMetaObject::connectSlotsByName(foobar);`
# for the header file of `.ui` file, which cause this application outputs log at runtime like
# `qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_actionXxx_triggered()`,
# because we only use UIC for building user interface and all signals and actions are managed by ourselves.
set_target_properties(${EXE_NAME} PROPERTIES AUTOUIC_OPTIONS "-a")
# YYC MARK:
# This is essential, otherwise Qt UIC generated UI header file
# can not find our header files if there are custom widgets inside UI file.
target_include_directories(${EXE_NAME} PRIVATE app/)
target_sources(${EXE_NAME} PRIVATE ${SCWPIC_QM_FILES})
target_sources(${EXE_NAME} PRIVATE ${PPIC_QM_FILES})
target_link_libraries (${EXE_NAME} Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Svg Qt${QT_VERSION_MAJOR}::SvgWidgets)
@@ -189,7 +181,7 @@ if (WIN32)
endif ()
# Helper macros for parsing and setting project version from `git describe --long` result
macro (scwpic_set_version_via_describe _describe_long)
macro (ppic_set_version_via_describe _describe_long)
string (
REGEX REPLACE
"^([0-9a-z.]*)-[0-9]+-g[0-9a-f]*$"
@@ -213,7 +205,7 @@ macro (scwpic_set_version_via_describe _describe_long)
endmacro ()
# Version setup
target_compile_definitions(${EXE_NAME} PRIVATE SCWPIC_VERSION_STRING="${CMAKE_PROJECT_VERSION}")
target_compile_definitions(${EXE_NAME} PRIVATE PPIC_VERSION_STRING="${CMAKE_PROJECT_VERSION}")
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
find_package(Git)
set_package_properties(Git PROPERTIES TYPE OPTIONAL PURPOSE "Determine exact build version.")
@@ -224,7 +216,7 @@ if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
OUTPUT_VARIABLE _git_describe_long
)
string (REGEX REPLACE "\n" "" _git_describe_long "${_git_describe_long}")
scwpic_set_version_via_describe(${_git_describe_long})
ppic_set_version_via_describe(${_git_describe_long})
target_compile_definitions(${EXE_NAME} PRIVATE
GIT_DESCRIBE_VERSION_STRING="${_git_describe_long}"
)
@@ -236,88 +228,20 @@ if (WIN32)
set_target_properties(${EXE_NAME} PROPERTIES
WIN32_EXECUTABLE TRUE
)
# Setup Inno Setup script file
set (INNO_SETUP_VERSION "7" CACHE STRING "Major version of Inno Setup that packages the installer; decides which language files count as official in the metaglot inno rendering.")
set_property (CACHE INNO_SETUP_VERSION PROPERTY STRINGS 6 7)
set (SCWPIC_INNO_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/inno-metadata)
execute_process (
COMMAND ${METAGLOT_EXECUTABLE} render inno
--inno-version ${INNO_SETUP_VERSION}
--manifest ${CMAKE_SOURCE_DIR}/dist/scwpic.iss.in.toml
--po ${CMAKE_SOURCE_DIR}/locales/inno/*.po
--iss-template ${CMAKE_SOURCE_DIR}/dist/scwpic.iss.in.liquid
--isl-template ${CMAKE_SOURCE_DIR}/dist/scwpic.isl.liquid
--iss-path scwpic.iss.in
--isl-path "Strings/{{ lang | default: name }}.isl"
--output ${SCWPIC_INNO_OUTPUT_DIR}
RESULT_VARIABLE METAGLOT_INNO_RESULT
)
if (NOT METAGLOT_INNO_RESULT EQUAL 0)
message (FATAL_ERROR "Failed to render Inno Setup script via MetaGlot (exit code: ${METAGLOT_INNO_RESULT}).")
endif ()
configure_file (${SCWPIC_INNO_OUTPUT_DIR}/scwpic.iss.in ${SCWPIC_INNO_OUTPUT_DIR}/scwpic.iss @ONLY)
# Setup MSIX metadata.
set (SCWPIC_MSIX_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/msix-metadata)
execute_process (
COMMAND ${METAGLOT_EXECUTABLE} render msix
--manifest ${CMAKE_SOURCE_DIR}/dist/AppxManifest.xml.in.toml
--po ${CMAKE_SOURCE_DIR}/locales/msix/*.po
--manifest-template ${CMAKE_SOURCE_DIR}/dist/AppxManifest.xml.in.liquid
--resources-template ${CMAKE_SOURCE_DIR}/dist/Resources.resjson.liquid
--manifest-path AppxManifest.xml.in
--resources-path "Strings/{{ lang }}/Resources.resjson"
--output ${SCWPIC_MSIX_OUTPUT_DIR}
RESULT_VARIABLE METAGLOT_MSIX_RESULT
)
if (NOT METAGLOT_MSIX_RESULT EQUAL 0)
message (FATAL_ERROR "Failed to render MSIX metadata via MetaGlot (exit code: ${METAGLOT_MSIX_RESULT}).")
endif ()
configure_file (${SCWPIC_MSIX_OUTPUT_DIR}/AppxManifest.xml.in ${SCWPIC_MSIX_OUTPUT_DIR}/AppxManifest.xml @ONLY)
elseif (APPLE)
# Include icon to project
set_source_files_properties(dist/macos-icons/sarasacw-picture.icns PROPERTIES
set_source_files_properties(dist/sarasacw-picture.icns PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources"
)
target_sources(${EXE_NAME} PRIVATE dist/macos-icons/sarasacw-picture.icns)
# Setup Info.plist related directory.
set (SCWPIC_PLIST_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/plist-metadata)
# Render Info.plist and its strings.
execute_process (
COMMAND ${METAGLOT_EXECUTABLE} render plist
--manifest ${CMAKE_SOURCE_DIR}/dist/Info.plist.in.toml
--po ${CMAKE_SOURCE_DIR}/locales/plist/*.po
--plist-template ${CMAKE_SOURCE_DIR}/dist/Info.plist.in.liquid
--strings-template ${CMAKE_SOURCE_DIR}/dist/InfoPlist.strings.liquid
--plist-path Info.plist.in
--strings-path "Resources/{{ lang }}.lproj/InfoPlist.strings"
--output ${SCWPIC_PLIST_OUTPUT_DIR}
RESULT_VARIABLE METAGLOT_PLIST_RESULT
)
if (NOT METAGLOT_PLIST_RESULT EQUAL 0)
message (FATAL_ERROR "Failed to render Info.plist metadata via MetaGlot (exit code: ${METAGLOT_PLIST_RESULT}).")
endif ()
# Include these to project.
file (GLOB SCWPIC_PLIST_STRINGS_FILES ${SCWPIC_PLIST_OUTPUT_DIR}/Resources/*.lproj/InfoPlist.strings)
foreach (plist_strings_file ${SCWPIC_PLIST_STRINGS_FILES})
get_filename_component (plist_lproj_dir ${plist_strings_file} DIRECTORY)
get_filename_component (plist_lproj_name ${plist_lproj_dir} NAME)
set_source_files_properties (${plist_strings_file} PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources/${plist_lproj_name}"
)
target_sources (${EXE_NAME} PRIVATE ${plist_strings_file})
endforeach ()
target_sources(${EXE_NAME} PUBLIC dist/sarasacw-picture.icns)
# See https://cmake.org/cmake/help/v3.15/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html
set_target_properties(${EXE_NAME} PROPERTIES
MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_INFO_PLIST ${SCWPIC_PLIST_OUTPUT_DIR}/Info.plist.in
MACOSX_BUNDLE_INFO_STRING "${PROJECT_VERSION}, Copyright (C) 2026 Sarasa's Chip Workshop"
MACOSX_BUNDLE_GUI_IDENTIFIER org.sarasaschipworkshop.picture
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/dist/MacOSXBundleInfo.plist.in
MACOSX_BUNDLE_BUNDLE_NAME "Pineapple Pictures"
MACOSX_BUNDLE_GUI_IDENTIFIER net.blumia.pineapple-pictures
MACOSX_BUNDLE_ICON_FILE sarasacw-picture.icns # contains the .icns file name, *without* the path.
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
)
elseif (UNIX)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
@@ -331,40 +255,40 @@ elseif (UNIX)
)
# generate and install desktop entry file
set (SCWPIC_DESKTOP_FILE ${CMAKE_CURRENT_BINARY_DIR}/org.sarasaschipworkshop.picture.desktop)
set (PPIC_DESKTOP_FILE ${CMAKE_CURRENT_BINARY_DIR}/net.blumia.pineapple-pictures.desktop)
execute_process (
COMMAND ${METAGLOT_EXECUTABLE} render desktop
--manifest ${CMAKE_SOURCE_DIR}/dist/org.sarasaschipworkshop.picture.desktop.toml
COMMAND ${UV_EXECUTABLE} tool run metaglot render desktop
--manifest ${CMAKE_SOURCE_DIR}/dist/net.blumia.pineapple-pictures.desktop.toml
--po ${CMAKE_SOURCE_DIR}/locales/desktop/*.po
--template ${CMAKE_SOURCE_DIR}/dist/org.sarasaschipworkshop.picture.desktop.liquid
--output ${SCWPIC_DESKTOP_FILE}
--template ${CMAKE_SOURCE_DIR}/dist/net.blumia.pineapple-pictures.desktop.liquid
--output ${PPIC_DESKTOP_FILE}
RESULT_VARIABLE METAGLOT_DESKTOP_RESULT
)
if (NOT METAGLOT_DESKTOP_RESULT EQUAL 0)
message (FATAL_ERROR "Failed to generate .desktop via MetaGlot (exit code: ${METAGLOT_DESKTOP_RESULT}).")
message (FATAL_ERROR "Failed to generate net.blumia.pineapple-pictures.desktop via MetaGlot (exit code: ${METAGLOT_DESKTOP_RESULT}). If it is not installed yet, run: uv tool install git+https://github.com/SarasasChipWorkshop/metaglot.git")
endif ()
install (
FILES ${SCWPIC_DESKTOP_FILE}
FILES ${PPIC_DESKTOP_FILE}
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications"
)
# generate and install app metadata file for appstream (and some other stuff using this metadata like snapcraft)
set (SCWPIC_METAINFO_FILE ${CMAKE_CURRENT_BINARY_DIR}/org.sarasaschipworkshop.picture.metainfo.xml)
set (PPIC_METAINFO_FILE ${CMAKE_CURRENT_BINARY_DIR}/net.blumia.pineapple-pictures.metainfo.xml)
execute_process (
COMMAND ${METAGLOT_EXECUTABLE} render appstream
--manifest ${CMAKE_SOURCE_DIR}/dist/org.sarasaschipworkshop.picture.metainfo.xml.toml
COMMAND ${UV_EXECUTABLE} tool run metaglot render appstream
--manifest ${CMAKE_SOURCE_DIR}/dist/net.blumia.pineapple-pictures.metainfo.xml.toml
--po ${CMAKE_SOURCE_DIR}/locales/appstream/*.po
--template ${CMAKE_SOURCE_DIR}/dist/org.sarasaschipworkshop.picture.metainfo.xml.liquid
--output ${SCWPIC_METAINFO_FILE}
--template ${CMAKE_SOURCE_DIR}/dist/net.blumia.pineapple-pictures.metainfo.xml.liquid
--output ${PPIC_METAINFO_FILE}
RESULT_VARIABLE METAGLOT_METAINFO_RESULT
)
if (NOT METAGLOT_METAINFO_RESULT EQUAL 0)
message (FATAL_ERROR "Failed to generate .metainfo.xml via MetaGlot (exit code: ${METAGLOT_METAINFO_RESULT}).")
message (FATAL_ERROR "Failed to generate net.blumia.pineapple-pictures.metainfo.xml via MetaGlot (exit code: ${METAGLOT_METAINFO_RESULT}). If it is not installed yet, run: uv tool install git+https://github.com/SarasasChipWorkshop/metaglot.git")
endif ()
install (
FILES ${SCWPIC_METAINFO_FILE}
FILES ${PPIC_METAINFO_FILE}
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo"
)
endif()
@@ -388,7 +312,7 @@ if (TRANSLATION_RESOURCE_EMBEDDING)
elseif (WIN32)
set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}/translations")
else()
set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/sarasacw-picture/translations")
set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/pineapple-pictures/translations")
target_compile_definitions(${EXE_NAME}
PRIVATE QM_FILE_INSTALL_ABSOLUTE_DIR=${QM_FILE_INSTALL_DIR}
)
@@ -396,7 +320,7 @@ endif()
if (DEFINED QM_FILE_INSTALL_DIR)
install(
FILES ${SCWPIC_QM_FILES}
FILES ${PPIC_QM_FILES}
DESTINATION ${QM_FILE_INSTALL_DIR}
)
endif()
@@ -404,10 +328,10 @@ feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAG
# CPACK: General Settings
set (CPACK_GENERATOR "TBZ2")
set (CPACK_PACKAGE_NAME "sarasacw-picture")
set (CPACK_PACKAGE_NAME "pineapple-pictures")
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Yet another image viewer")
set (CPACK_PACKAGE_VENDOR "Sarasa's Chip Workshop")
set (CPACK_PACKAGE_CONTACT "https://github.com/SarasasChipWorkshop/sarasacw-picture/issues/")
set (CPACK_PACKAGE_VENDOR "Gary Wang")
set (CPACK_PACKAGE_CONTACT "https://github.com/BLumia/pineapple-pictures/issues/")
if (WIN32)
# ...
elseif (APPLE)
-162
View File
@@ -1,162 +0,0 @@
# Developer Notes
This document describes maintenance workflows and policies of this repository that are easy to get wrong or hard to discover from the source tree alone. It is intended for developers of this repository; see `README.md` for general instructions.
## Bumping the Version
The project version is maintained by hand in only one place, `CMakeLists.txt`. Modify its `project` statement at the top of the file when bumping the version.
Additionally, when releasing a new version of this application, please update all of the following items for a better user experience:
- `NEWS`: add a new section at the very top of the file, following the format of the existing entries.
- `dist/org.sarasaschipworkshop.picture.metainfo.xml.liquid`: add a new `<release>` element at the top of the `<releases>` section.
Finally, mark the release with a git tag named exactly `x.y.z` (no `v` prefix, strictly three numeric components).
## Maintaining Translator Credits
When adding a new translator for an existing language, or a new language, please edit `assets/htmls/special-thanks.html` by hand to show the corresponding credits in the application interface.
If you have added a language for the application, please make sure to also add it for all distribution translations. The available languages of the distribution translations should be kept synchronized with the application translations.
## Qt Version Support Policy
### Policy for CI
- The Qt version installed by the Windows and macOS workflows is pinned to the one used by the hard fork upstream ([Pineapple Pictures](https://github.com/BLumia/pineapple-pictures)).
- The Ubuntu workflow always uses the Qt provided by the package manager of the latest Ubuntu LTS version.
### Policy for the Project
The minimum Qt version that the project itself declares follows the formula `min(A, B)`, where `A` is the lowest Qt version used by any CI workflow and `B` is the Qt version shipped by the latest Debian stable release.
## File Type Associations
The image formats supported by this application are varied. Considering the workload of creating icons, we cannot assign each of them a dedicated icon, so it is inevitable that multiple file extensions share a single icon. We list this relation by packaging channel for developers, and at the same time you can also see the file extensions that each packaging channel wants to associate.
The assignment follows a categorization:
- Photographic and high dynamic range formats use the `jpg` icon.
- Formats that can carry transparency use the `png` icon.
- Bitmap artwork produced by graphics editors uses the `bmp` icon.
- Formats that contain animation use the `gif` icon.
- Vector formats, archaic formats, and icon formats use the `svg` icon.
### MSIX Package
| Cluster Name | Icon | File Extensions |
| --- | --- | --- |
| JPEG | `jpg` | `.jpg`, `.jpeg`, `.jfif` |
| GIF | `gif` | `.gif` |
| PNG | `png` | `.png`, `.apng` |
| SVG | `svg` | `.svg` |
| WebP | `png` | `.webp` |
| AVIF | `png` | `.avif` |
| ICO | `svg` | `.ico` |
| ICNS | `svg` | `.icns` |
| PSD | `bmp` | `.psd`, `.psb`, `.pdd`, `.psdt` |
| KRA | `bmp` | `.kra` |
| XCF | `bmp` | `.xcf` |
| TARGA | `svg` | `.tga` |
| TIFF | `jpg` | `.tif`, `.tiff` |
| BMP | `bmp` | `.bmp` |
| WBMP | `bmp` | `.wbmp` |
| DDS | `bmp` | `.dds` |
| HDR | `jpg` | `.hdr`, `.exr` |
| IFF | `svg` | `.iff` |
| PIC | `svg` | `.pic` |
| PCX | `svg` | `.pcx` |
| QOI | `png` | `.qoi` |
| Sun Raster | `svg` | `.ras`, `.sun` |
| ORA | `bmp` | `.ora` |
| ANI | `gif` | `.ani` |
| PFM | `jpg` | `.pfm`, `.phm` |
| SGI | `svg` | `.bw`, `.rgb`, `.rgba`, `.sgi` |
| PXR | `svg` | `.pxr` |
| SCT | `svg` | `.sct` |
### Inno Setup Installer
| Cluster Name | Icon | File Extensions |
| --- | --- | --- |
| JPEG | `jpg` | `.jpg`, `.jpeg`, `.jfif` |
| GIF | `gif` | `.gif` |
| PNG | `png` | `.png`, `.apng` |
| SVG | `svg` | `.svg` |
| WebP | `png` | `.webp` |
| AVIF | `png` | `.avif` |
| ICO | `svg` | `.ico` |
| ICNS | `svg` | `.icns` |
| PSD | `bmp` | `.psd`, `.psb`, `.pdd`, `.psdt` |
| KRA | `bmp` | `.kra` |
| XCF | `bmp` | `.xcf` |
| TARGA | `svg` | `.tga` |
| TIFF | `jpg` | `.tif`, `.tiff` |
| BMP | `bmp` | `.bmp` |
| WBMP | `bmp` | `.wbmp` |
| DDS | `bmp` | `.dds` |
| HDR | `jpg` | `.hdr`, `.exr` |
| IFF | `svg` | `.iff` |
| PIC | `svg` | `.pic` |
| PCX | `svg` | `.pcx` |
| QOI | `png` | `.qoi` |
| Sun Raster | `svg` | `.ras`, `.sun` |
| ORA | `bmp` | `.ora` |
| ANI | `gif` | `.ani` |
| PFM | `jpg` | `.pfm`, `.phm` |
| SGI | `svg` | `.bw`, `.rgb`, `.rgba`, `.sgi` |
| PXR | `svg` | `.pxr` |
| SCT | `svg` | `.sct` |
### FreeDesktop Desktop Entry
| Cluster Name | Mimetypes |
| --- | --- |
| JPEG | `image/jpeg`, `image/jpg`, `image/jpe`, `image/jpeg24` |
| PNG | `image/png` |
| GIF | `image/gif` |
| SVG | `image/svg`, `image/svg+xml` |
| BMP | `image/bmp`, `image/bmp24` |
| TIFF | `image/tif`, `image/tiff`, `image/tiff24`, `image/ptif` |
| DDS | `image/dds` |
| PCX | `image/pcx` |
| SGI | `image/sgi` |
| JNG | `image/jng` |
| JPEG 2000 | `image/j2k`, `image/jp2` |
| PICT | `image/pct` |
| HD Photo | `image/wdp` |
| camera raw | `image/arw`, `image/dng`, `image/mef` |
| Targa variants | `image/icb`, `image/vda`, `image/vst` |
| XBM | `image/xbm` |
| PhotoCD | `image/pcd` |
### macOS Application Bundle
| Cluster Name | Mimetypes | File Extensions |
| --- | --- | --- |
| JPEG | `image/jpeg` | `.jpg`, `.jpeg`, `.jfif` |
| PNG | `image/png` | `.png` |
| WebP | `image/webp` | `.webp` |
| GIF | `image/gif` | `.gif` |
| SVG | `image/svg+xml` | `.svg` |
## Adding a New File Type
A new file type must be added to every channel listed above in the same change. Specifically, you should:
- Update the tables in this document accordingly.
- Windows RC File
* Define the display name under the next numeric string key in `dist/sarasacw-picture.rc.in.toml`.
* Extend the string table ID range in `dist/sarasacw-picture.rc.in.liquid` to cover the newly added string resource.
- MSIX Package
* Define the display name in `dist/AppxManifest.xml.in.toml`.
* Add a `uap:FileTypeAssociation` element to `dist/AppxManifest.xml.in.liquid` with the extensions, the display name reference, and the logo reference.
- Inno Setup Installer
* Edit the `[Registry]` section of `dist/scwpic.iss.in.liquid`.
- Copy an existing file family block, adjust the ProgId, the referenced string and icon resources, and the extension list.
- Add the new extensions to the `SupportedTypes` registry key.
- FreeDesktop Desktop Entry
* Append the mimetype to the `MimeType=` key of `dist/org.sarasaschipworkshop.picture.desktop.liquid` (the type name and icon are resolved by the desktop environment, so nothing else is needed).
- macOS Application Bundle
* Add a `CFBundleDocumentTypes` entry to `dist/Info.plist.in.liquid` with the extensions, the display name, and the mimetypes.
* Update `dist/Info.plist.in.toml` and `dist/InfoPlist.strings.liquid` for the display name translation.
-1
View File
@@ -1,7 +1,6 @@
MIT License
Copyright (c) 2026 BLumia
Copyright (c) 2026 Sarasa's Chip Workshop
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
-396
View File
@@ -1,396 +0,0 @@
Attribution 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their
terms and conditions, or any related information. Creative Commons
disclaims all liability for damages resulting from their use to the
fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and
conditions that creators and other rights holders may use to share
original works of authorship and other material subject to copyright
and certain other rights specified in the public license below. The
following considerations are for informational purposes only, are not
exhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are
intended for use by those authorized to give the public
permission to use material in ways otherwise restricted by
copyright and certain other rights. Our licenses are
irrevocable. Licensors should read and understand the terms
and conditions of the license they choose before applying it.
Licensors should also secure all rights necessary before
applying our licenses so that the public can reuse the
material as expected. Licensors should clearly mark any
material not subject to the license. This includes other CC-
licensed material, or material used under an exception or
limitation to copyright. More considerations for licensors:
wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public
licenses, a licensor grants the public permission to use the
licensed material under specified terms and conditions. If
the licensor's permission is not necessary for any reason--for
example, because of any applicable exception or limitation to
copyright--then that use is not regulated by the license. Our
licenses grant only permissions under copyright and certain
other rights that a licensor has authority to grant. Use of
the licensed material may still be restricted for other
reasons, including because others have copyright or other
rights in the material. A licensor may make special requests,
such as asking that all changes be marked or described.
Although not required by our licenses, you are encouraged to
respect those requests where reasonable. More considerations
for the public:
wiki.creativecommons.org/Considerations_for_licensees
=======================================================================
Creative Commons Attribution 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution 4.0 International Public License ("Public License"). To the
extent this Public License may be interpreted as a contract, You are
granted the Licensed Rights in consideration of Your acceptance of
these terms and conditions, and the Licensor grants You such rights in
consideration of benefits the Licensor receives from making the
Licensed Material available under these terms and conditions.
Section 1 -- Definitions.
a. Adapted Material means material subject to Copyright and Similar
Rights that is derived from or based upon the Licensed Material
and in which the Licensed Material is translated, altered,
arranged, transformed, or otherwise modified in a manner requiring
permission under the Copyright and Similar Rights held by the
Licensor. For purposes of this Public License, where the Licensed
Material is a musical work, performance, or sound recording,
Adapted Material is always produced where the Licensed Material is
synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright
and Similar Rights in Your contributions to Adapted Material in
accordance with the terms and conditions of this Public License.
c. Copyright and Similar Rights means copyright and/or similar rights
closely related to copyright including, without limitation,
performance, broadcast, sound recording, and Sui Generis Database
Rights, without regard to how the rights are labeled or
categorized. For purposes of this Public License, the rights
specified in Section 2(b)(1)-(2) are not Copyright and Similar
Rights.
d. Effective Technological Measures means those measures that, in the
absence of proper authority, may not be circumvented under laws
fulfilling obligations under Article 11 of the WIPO Copyright
Treaty adopted on December 20, 1996, and/or similar international
agreements.
e. Exceptions and Limitations means fair use, fair dealing, and/or
any other exception or limitation to Copyright and Similar Rights
that applies to Your use of the Licensed Material.
f. Licensed Material means the artistic or literary work, database,
or other material to which the Licensor applied this Public
License.
g. Licensed Rights means the rights granted to You subject to the
terms and conditions of this Public License, which are limited to
all Copyright and Similar Rights that apply to Your use of the
Licensed Material and that the Licensor has authority to license.
h. Licensor means the individual(s) or entity(ies) granting rights
under this Public License.
i. Share means to provide material to the public by any means or
process that requires permission under the Licensed Rights, such
as reproduction, public display, public performance, distribution,
dissemination, communication, or importation, and to make material
available to the public including in ways that members of the
public may access the material from a place and at a time
individually chosen by them.
j. Sui Generis Database Rights means rights other than copyright
resulting from Directive 96/9/EC of the European Parliament and of
the Council of 11 March 1996 on the legal protection of databases,
as amended and/or succeeded, as well as other essentially
equivalent rights anywhere in the world.
k. You means the individual or entity exercising the Licensed Rights
under this Public License. Your has a corresponding meaning.
Section 2 -- Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License,
the Licensor hereby grants You a worldwide, royalty-free,
non-sublicensable, non-exclusive, irrevocable license to
exercise the Licensed Rights in the Licensed Material to:
a. reproduce and Share the Licensed Material, in whole or
in part; and
b. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where
Exceptions and Limitations apply to Your use, this Public
License does not apply, and You do not need to comply with
its terms and conditions.
3. Term. The term of this Public License is specified in Section
6(a).
4. Media and formats; technical modifications allowed. The
Licensor authorizes You to exercise the Licensed Rights in
all media and formats whether now known or hereafter created,
and to make technical modifications necessary to do so. The
Licensor waives and/or agrees not to assert any right or
authority to forbid You from making technical modifications
necessary to exercise the Licensed Rights, including
technical modifications necessary to circumvent Effective
Technological Measures. For purposes of this Public License,
simply making modifications authorized by this Section 2(a)
(4) never produces Adapted Material.
5. Downstream recipients.
a. Offer from the Licensor -- Licensed Material. Every
recipient of the Licensed Material automatically
receives an offer from the Licensor to exercise the
Licensed Rights under the terms and conditions of this
Public License.
b. No downstream restrictions. You may not offer or impose
any additional or different terms or conditions on, or
apply any Effective Technological Measures to, the
Licensed Material if doing so restricts exercise of the
Licensed Rights by any recipient of the Licensed
Material.
6. No endorsement. Nothing in this Public License constitutes or
may be construed as permission to assert or imply that You
are, or that Your use of the Licensed Material is, connected
with, or sponsored, endorsed, or granted official status by,
the Licensor or others designated to receive attribution as
provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not
licensed under this Public License, nor are publicity,
privacy, and/or other similar personality rights; however, to
the extent possible, the Licensor waives and/or agrees not to
assert any such rights held by the Licensor to the limited
extent necessary to allow You to exercise the Licensed
Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this
Public License.
3. To the extent possible, the Licensor waives any right to
collect royalties from You for the exercise of the Licensed
Rights, whether directly or through a collecting society
under any voluntary or waivable statutory or compulsory
licensing scheme. In all other cases the Licensor expressly
reserves any right to collect such royalties.
Section 3 -- License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the
following conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified
form), You must:
a. retain the following if it is supplied by the Licensor
with the Licensed Material:
i. identification of the creator(s) of the Licensed
Material and any others designated to receive
attribution, in any reasonable manner requested by
the Licensor (including by pseudonym if
designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of
warranties;
v. a URI or hyperlink to the Licensed Material to the
extent reasonably practicable;
b. indicate if You modified the Licensed Material and
retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this
Public License, and include the text of, or the URI or
hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any
reasonable manner based on the medium, means, and context in
which You Share the Licensed Material. For example, it may be
reasonable to satisfy the conditions by providing a URI or
hyperlink to a resource that includes the required
information.
3. If requested by the Licensor, You must remove any of the
information required by Section 3(a)(1)(A) to the extent
reasonably practicable.
4. If You Share Adapted Material You produce, the Adapter's
License You apply must not prevent recipients of the Adapted
Material from complying with this Public License.
Section 4 -- Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that
apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
to extract, reuse, reproduce, and Share all or a substantial
portion of the contents of the database;
b. if You include all or a substantial portion of the database
contents in a database in which You have Sui Generis Database
Rights, then the database in which You have Sui Generis Database
Rights (but not its individual contents) is Adapted Material; and
c. You must comply with the conditions in Section 3(a) if You Share
all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not
replace Your obligations under this Public License where the Licensed
Rights include other Copyright and Similar Rights.
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
c. The disclaimer of warranties and limitation of liability provided
above shall be interpreted in a manner that, to the extent
possible, most closely approximates an absolute disclaimer and
waiver of all liability.
Section 6 -- Term and Termination.
a. This Public License applies for the term of the Copyright and
Similar Rights licensed here. However, if You fail to comply with
this Public License, then Your rights under this Public License
terminate automatically.
b. Where Your right to use the Licensed Material has terminated under
Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided
it is cured within 30 days of Your discovery of the
violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any
right the Licensor may have to seek remedies for Your violations
of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the
Licensed Material under separate terms or conditions or stop
distributing the Licensed Material at any time; however, doing so
will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
License.
Section 7 -- Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different
terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the
Licensed Material not stated herein are separate from and
independent of the terms and conditions of this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and
shall not be interpreted to, reduce, limit, restrict, or impose
conditions on any use of the Licensed Material that could lawfully
be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is
deemed unenforceable, it shall be automatically reformed to the
minimum extent necessary to make it enforceable. If the provision
cannot be reformed, it shall be severed from this Public License
without affecting the enforceability of the remaining terms and
conditions.
c. No term or condition of this Public License will be waived and no
failure to comply consented to unless expressly agreed to by the
Licensor.
d. Nothing in this Public License constitutes or may be interpreted
as a limitation upon, or waiver of, any privileges and immunities
that apply to the Licensor or You, including from the legal
processes of any jurisdiction or authority.
=======================================================================
Creative Commons is not a party to its public
licenses. Notwithstanding, Creative Commons may elect to apply one of
its public licenses to material it publishes and in those instances
will be considered the “Licensor.” The text of the Creative Commons
public licenses is dedicated to the public domain under the CC0 Public
Domain Dedication. Except for the limited purpose of indicating that
material is shared under a Creative Commons public license or as
otherwise permitted by the Creative Commons policies published at
creativecommons.org/policies, Creative Commons does not authorize the
use of the trademark "Creative Commons" or any other trademark or logo
of Creative Commons without its prior written consent including,
without limitation, in connection with any unauthorized modifications
to any of its public licenses or any other arrangements,
understandings, or agreements concerning use of licensed material. For
the avoidance of doubt, this paragraph does not form part of the
public licenses.
Creative Commons may be contacted at creativecommons.org.
+51 -26
View File
@@ -1,59 +1,84 @@
# Sarasa's Chip Workshop Photo Viewer
> [!IMPORTANT]
> SCW Photo Viewer is still in refactoring. Please do not use it until this message removes.
# Sarasas Chip Workshop Picture
Yet another legacy Windows Photo Viewer with cross-platform support.
[![](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/windows.yml/badge.svg)](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/windows.yml)
[![](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/macos.yml/badge.svg)](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/macos.yml)
[![](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/ubuntu.yml)
![SCW Photo Viewer - Main Window](https://github.com/user-attachments/assets/a58ac355-24e5-4262-9eea-c55956d89689)
> [!IMPORTANT]
> SarasaCW Picture are still in refactoring. Please do not use it until this message removes.
## Summary
Sarasa's Chip Workshop Photo Viewer (abbr. SCW Photo Viewer) is a lightweight image viewer that has cross-platform support and similar user interface about legacy Windows Photo Viewer. It allows you view JPEG, PNG, GIF, SVG, PSD, KRA, XCF, TGA, HDR, AVIF and some other frequently used image formats files quickly and easily without changing your long-term Windows usage experience.
Sarasas Chip Workshop Picture (abbr. SarasaCW Picture) is a lightweight image viewer that has cross-platform support and similar user interface about legacy Windows Photo Viewer. It allows you view JPEG, PNG, GIF, SVG, PSD, KRA, XCF, TGA, HDR, AVIF and some other frequently used image formats files quickly and easily without changing your long-term Windows usage experience.
SCW Photo Viewer is the **hard fork** of [Pineapple Pictures](https://github.com/BLumia/pineapple-pictures) since Pineapple Pictures 1.4.1 version.
SarasaCW Picture is the **hard fork** of [Pineapple Pictures](https://github.com/BLumia/pineapple-pictures) since Pineapple Pictures 1.4.1 version.
## Installation
<!--
Download from the places maintained by the author of this repository:
|CI|Build Status|
|---|---|
|Windows Build|[![Windows CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/windows.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/windows.yml)|
|macOS Build|[![macOS CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml)|
|Ubuntu Build|[![Ubuntu CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml)|
- [GitHub Release Page](https://github.com/SarasasChipWorkshop/sarasacw-picture/releases)
![Pineapple Pictures - Main Window](https://repository-images.githubusercontent.com/211888654/e8697600-e370-11eb-9b2a-b71e05262954)
## Get it!
### Maintained by the original author
- [GitHub Release Page](https://github.com/BLumia/pineapple-pictures/releases)
- [SourceForge](https://sourceforge.net/projects/pineapple-pictures/)
- Archlinux AUR: [pineapple-pictures](https://aur.archlinux.org/packages/pineapple-pictures/) | [pineapple-pictures-git](https://aur.archlinux.org/packages/pineapple-pictures-git/)
- [Itch.io Store](https://blumia.itch.io/pineapple-pictures)
### Maintained by contributors / certain distro's package maintainers
[![Packaging status](https://repology.org/badge/vertical-allrepos/pineapple-pictures.svg?columns=4)](https://repology.org/project/pineapple-pictures/versions)
## Contribution
The new feature request of this application are freezed now because this application basically is a replica of legacy Windows Photo Viewer with additional cross-platform support. However, bug report and translation are welcome.
Beside feedback and code contribution, other contributions are also welcome!
## Build Instruction
### Help Translation!
[Translate this project on Weblate!](https://hosted.weblate.org/projects/pineapple-pictures/)
### Funding
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/blumia)
[![Afdian](https://static.afdiancdn.com/static/img/logo/logo.png)Afdian](https://afdian.com/a/BLumia)
## Build it manually:
Current state, we need:
- `cmake`: as the build system.
- `python3` and [`metaglot`](https://github.com/SarasasChipWorkshop/metaglot): as the metadata localization processor. An isolated install via `uv tool` (as opposed to a global install like pip) is recommended.
- `qt6` with `qt6-svg` and `qt6-tools`: since the app is using Qt.
- `libexiv2`: able to display more image metadata. (optional, but recommended)
- `cmake`: as the build system.
- `qt6` with `qt6-svg` and `qt6-tools`: since the app is using Qt.
- `libexiv2`: able to display more image metadata. (optional, but recommended)
Then we can build it with any proper C++ compiler like g++ or MSVC.
Then we can build it with any proper c++ compiler like g++ or msvc.
Building it just requires normal cmake building steps:
```bash
``` bash
$ mkdir build && cd build
$ cmake ..
$ cmake --build .
$ cmake --build . # or simply using `make` if you are using Makefile as the cmake generator.
```
After that, a `scwpic` executable file will be available to use. You can also optionally install it by using the target `install`. After the build process, you can also use `cpack` to make a package.
After that, a `ppic` executable file will be available to use. You can also optionally install it by using the target `install` (or simply `make install` in case you are using Makefile). After the build process, you can also use `cpack` to make a package.
The project will try to build with `exiv2` when it's available at build time, if you would like to build the project without `exiv2`, pass `-DEXIV2_METADATA_SUPPORT=OFF` to `cmake`. The project will also not use `exiv2` if it's not found, the `EXIV2_METADATA_SUPPORT` option can be useful if you have `exiv2` but specifically don't want to use it.
Image formats supports rely on Qt's imageformats plugins, just get the plugins you need from your distro's package manager will be fine. For Windows user, you may need build and install the imageformats plugin manually, read the content below.
It's possible to build it under Windows, Linux, macOS, and maybe other desktop platforms that Qt is ported to.
It's possible to build it under Windows, Linux, macOS, and maybe other desktop platforms that Qt is ported to. For platform specific build instructions, please read the [related wiki page](https://github.com/BLumia/pineapple-pictures/wiki/Platform-Specific-Build-Instructions).
> [!NOTE]
> Although there is a `pineapple-pictures.pro` file which can be used for QMake build, it's only for testing purpose and it doesn't have `exiv2` support included. Using QMake to build this project is NOT supported, please use CMake if possible.
## License
SCW Photo Viewer as a whole is licensed under MIT license. Individual files may have a different, but compatible license.
Pineapple Pictures as a whole is licensed under MIT license. Individual files may have a different, but compatible license.
-->
-59
View File
@@ -1,59 +0,0 @@
# Sarasa's Chip Workshop 照片查看器
> [!IMPORTANT]
> SCW 照片查看器还在重构中。在这条信息被移除之前请不要使用它。
跨平台的、经典 Windows 照片查看器样式的照片查看器。
[![](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/windows.yml/badge.svg)](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/windows.yml)
[![](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/macos.yml/badge.svg)](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/macos.yml)
[![](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/ubuntu.yml)
![SCW 照片查看器 - 主窗口](https://github.com/user-attachments/assets/a58ac355-24e5-4262-9eea-c55956d89689)
## 简介
Sarasa's Chip Workshop 照片查看器(简称 SCW 照片查看器)是一个轻量级的图片查看器。支持跨平台。界面风格类似于经典的 Windows 照片查看器。它可以让你快速轻松地浏览 JPEG、PNG、GIF、SVG、PSD、KRA、XCF、TGA、HDR、AVIF 以及其他一些常用的图片格式,且无需改变你长期的 Windows 使用习惯。
SCW 照片查看器是[菠萝看图](https://github.com/BLumia/pineapple-pictures)的**硬分叉**,该分叉自菠萝看图 1.4.1 版本开始。
## 安装
从本仓库作者维护的地方下载:
- [GitHub Release 页面](https://github.com/SarasasChipWorkshop/sarasacw-picture/releases)
## 参与贡献
现在已冻结该应用的新功能请求,因为这个应用基本上是经典样式的 Windows 照片查看器的复刻,只是增加了跨平台支持。不过仍然欢迎针对该项目的错误报告和翻译。
## 构建指导
当前状态,我们需要先确保如下依赖可用:
- `cmake`:我们所使用的构建系统
- `python3` 和 [`metaglot`](https://github.com/SarasasChipWorkshop/metaglot):我们所使用的元数据本地化处理器,推荐使用 `uv tool` 进行隔离式安装(相较于 pip 那种全局式安装)
- 包含 `qt6-svg` 与 `qt6-tools` 组件的 `qt6`:此应用基于 Qt
- `libexiv2`:用以获取和显示更多的图像元信息(可选,推荐)
然后我们就可以使用任何常规的 C++ 编译器如 g++ 或 MSVC 来进行构建了
构建过程就是常规的 CMake 应用构建过程:
``` bash
$ mkdir build && cd build
$ cmake ..
$ cmake --build . # 如果你使用 Makefile 作为 CMake 生成器,也可以直接简单的使用 `make`
```
完毕后,一个名为 `scwpic` 的可执行程序即会被生成以供使用。您也可以选择通过使用 CMake 生成的 `install` 目标继续将其安装到您的设备上。构建步骤完毕后,您也可以使用 `cpack` 来对应用程序进行打包。
当 `exiv2` 在构建时可用时,此项目将尝试使用其进行构建,若您不希望使用 `exiv2`,请传递 `-DEXIV2_METADATA_SUPPORT=OFF` 参数给 `cmake`。此项目在找不到 `exiv2` 时并不会使用 `exiv2`,`EXIV2_METADATA_SUPPORT` 选项可供尽管存在可用的 `exiv2` 但您明确不希望启用其支持时使用。
此应用的图片格式支持依赖于 Qt 的 imageformats 插件,直接从您所用的发行版获取对应的图像格式插件即可。对于 Windows 用户,您可能需要手动构建和使用图像格式插件。下方给出了进一步的说明。
在 Windows、Linux 以及 macOS 系统均可构建此应用,其它有移植 Qt 支持的平台也可能可以进行构建。
## 许可协议
SCW 照片查看器整体使用 MIT 协议进行发布。项目所随的部分源文件可能具备不同但与之兼容的许可协议。
+87
View File
@@ -0,0 +1,87 @@
# Sarasas Chip Workshop 照片查看器
简单轻量的、具有跨平台支持的、经典样式的 Windows 照片查看器。
> [!IMPORTANT]
> SarasaCW 照片查看器还在重构中。在这条信息被移除之前请不要使用它。
## 简介
Sarasas Chip Workshop 照片查看器(简称 SarasaCW 照片查看器)是一个轻量级的图片查看器。支持跨平台。界面风格类似于经典的 Windows 照片查看器。它可以让你快速轻松地浏览 JPEG、PNG、GIF、SVG、PSD、KRA、XCF、TGA、HDR、AVIF 以及其他一些常用的图片格式,且无需改变你长期的 Windows 使用习惯。
SarasaCW 照片查看器是[菠萝看图](https://github.com/BLumia/pineapple-pictures)的**硬分叉**,该分叉自菠萝看图 1.4.1 版本开始。
<!--
简单轻量的跨平台看图工具。
|CI|构建状态|
|---|---|
|Windows Build|[![Windows CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/windows.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/windows.yml)|
|macOS Build|[![macOS CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml)|
|Ubuntu Build|[![Ubuntu CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml)|
![Pineapple Pictures - Main Window](https://repository-images.githubusercontent.com/211888654/e8697600-e370-11eb-9b2a-b71e05262954)
## 立即获取!
### 由原作者维护
- [GitHub Release 页面](https://github.com/BLumia/pineapple-pictures/releases)
- [SourceForge](https://sourceforge.net/projects/pineapple-pictures/)
- Archlinux AUR: [pineapple-pictures](https://aur.archlinux.org/packages/pineapple-pictures/) | [pineapple-pictures-git](https://aur.archlinux.org/packages/pineapple-pictures-git/)
- [Itch.io 商店](https://blumia.itch.io/pineapple-pictures)
- Flatpak (于 FlatHub): [net.blumia.pineapple-pictures](https://flathub.org/apps/net.blumia.pineapple-pictures) *([我应当使用 flatpak 版吗?](https://github.com/BLumia/pineapple-pictures/wiki/Container%E2%80%90based-Packaging-Solutions-Support))*
### 由贡献者/对应发行版的打包人员维护
[![打包状态](https://repology.org/badge/vertical-allrepos/pineapple-pictures.svg?columns=4)](https://repology.org/project/pineapple-pictures/versions)
## 参与贡献
除了参与反馈和代码贡献外,也欢迎各种类型的贡献!
### 帮助翻译!
[在 Weblate 上帮助此项目翻译到更多语言!](https://hosted.weblate.org/projects/pineapple-pictures/)
### 打赏
[![Afdian](https://static.afdiancdn.com/static/img/logo/logo.png)Afdian | 爱发电](https://afdian.com/a/BLumia)
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/blumia)
## 手动构建步骤:
当前状态,我们需要先确保如下依赖可用:
- `cmake`: 我们所使用的构建系统
- 包含 `qt6-svg` 与 `qt6-tools` 组件的 `qt6`: 此应用基于 Qt
- `libexiv2`: 用以获取和显示更多的图像元信息(可选,推荐)
然后我们就可以使用任何常规的 c++ 编译器如 g++ 或 msvc 来进行构建了
构建过程就是常规的 CMake 应用构建过程:
``` bash
$ mkdir build && cd build
$ cmake ..
$ cmake --build . # 如果你使用 Makefile 作为 CMake 生成器,也可以直接简单的使用 `make`
```
完毕后,一个名为 `ppic` 的可执行程序即会被生成以供使用。您也可以选择通过使用 CMake 生成的 `install` 目标继续将其安装到您的设备上(假设您使用 Makefile,即可执行 `make install` 来进行安装)。构建步骤完毕后,您也可以使用 `cpack` 来对应用程序进行打包。
当 `exiv2` 在构建时可用时,此项目将尝试使用其进行构建,若您不希望使用 `exiv2`,请传递 `-DEXIV2_METADATA_SUPPORT=OFF` 参数给 `cmake`。此项目在找不到 `exiv2` 时并不会使用 `exiv2`,`EXIV2_METADATA_SUPPORT` 选项可供尽管存在可用的 `exiv2` 但您明确不希望启用其支持时使用。
此应用的图片格式支持依赖于 Qt 的 imageformats 插件,直接从您所用的发行版获取对应的图像格式插件即可。对于 Windows 用户,您可能需要手动构建和使用图像格式插件。下方给出了进一步的说明。
在 Windows、Linux 以及 macOS 系统均可构建此应用,其它有移植 Qt 支持的平台也可能可以进行构建。若要了解一些平台相关的构建指引,请参阅[相关的 Wiki 页面](https://github.com/BLumia/pineapple-pictures/wiki/Platform-Specific-Build-Instructions)。
> [!NOTE]
> 尽管存在一个可用于 QMake 构建的 `pineapple-pictures.pro` 文件,但其仅供简单测试所用且其并不包含 `exiv2` 支持。使用 QMake 构建此项目是 **不受支持** 的,请尽可能考虑使用 CMake。
## 许可协议
菠萝看图整体使用 MIT 协议进行发布。项目所随的部分源文件可能具备不同但与之兼容的许可协议。
-->
+23 -41
View File
@@ -1,57 +1,39 @@
version = 1
SPDX-PackageName = "sarasacw-picture"
SPDX-PackageDownloadLocation = "https://github.com/SarasasChipWorkshop/sarasacw-picture.git"
SPDX-PackageName = "Pineapple Pictures"
SPDX-PackageDownloadLocation = "https://github.com/BLumia/pineapple-pictures"
[[annotations]]
path = [".gitattributes", ".git-blame-ignore-revs", ".gitignore", ".github/**"]
path = [".gitattributes", ".git-blame-ignore-revs", ".gitignore", "appveyor.yml", ".github/**"]
precedence = "aggregate"
SPDX-FileCopyrightText = "None"
SPDX-License-Identifier = "CC0-1.0"
[[annotations]]
path = ["README**.md", "DEVNOTE.md", "NEWS", "assets/**.qrc"]
path = ["README**.md", "NEWS", "assets/**.rc.in", "assets/**.qrc", "dist/appstream/**", "dist/**.in", "dist/**.desktop", "dist/**.rc.in.toml", "dist/**.rc.in.liquid"]
precedence = "aggregate"
SPDX-FileCopyrightText = "None"
SPDX-License-Identifier = "CC0-1.0"
[[annotations]]
path = ["LICENSE"]
precedence = "aggregate"
SPDX-FileCopyrightText = ["2026 BLumia", "2026 Sarasa's Chip Workshop"]
SPDX-License-Identifier = "MIT"
[[annotations]]
path = ["app/**.ui"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2026 Sarasa's Chip Workshop"
SPDX-License-Identifier = "MIT"
[[annotations]]
path = ["assets/htmls/**"]
precedence = "aggregate"
SPDX-FileCopyrightText = ["2026 Gary Wang", "2026 Sarasa's Chip Workshop"]
SPDX-License-Identifier = "MIT"
[[annotations]]
path = ["assets/icons/**.png"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2026 Sarasa's Chip Workshop"
SPDX-License-Identifier = "CC-BY-4.0"
[[annotations]]
path = ["dist/**.liquid", "dist/**.toml", "dist/**.ps1"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2026 Sarasa's Chip Workshop"
SPDX-License-Identifier = "MIT"
[[annotations]]
path = ["dist/**.png", "dist/**.ico", "dist/**.icns"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2026 Sarasa's Chip Workshop"
SPDX-License-Identifier = "CC-BY-4.0"
[[annotations]]
path = ["locales/**"]
path = ["locales/app/**.ts", "locales/winrc/**", "assets/plain/translators.html"]
precedence = "aggregate"
SPDX-FileCopyrightText = "Translators from hosted.weblate.org"
SPDX-License-Identifier = "MIT"
[[annotations]]
path = "tool/**"
precedence = "aggregate"
SPDX-FileCopyrightText = "2026 yyc12345"
SPDX-License-Identifier = "MIT"
[[annotations]]
path = "assets/icons/**.svg"
precedence = "aggregate"
SPDX-FileCopyrightText = "2022 Gary Wang"
SPDX-License-Identifier = "MIT"
[[annotations]]
path = "assets/icons/app-icon.**"
precedence = "aggregate"
SPDX-FileCopyrightText = "2020 Lovelyblack"
SPDX-License-Identifier = "MIT"
+1
View File
@@ -53,6 +53,7 @@ AboutDialog::AboutDialog(QWidget *parent)
.arg(tr("Version: %1").arg(APP_VERSION_ARG))
.arg(tr("Upstream author"))
.arg(tr("Hard fork author"))
.arg(tr("Logo designer"))
.arg(tr("Built with Qt %1 (%2)").arg(QT_VERSION_ARG).arg(QT_ARCH_ARG))
.arg(tr("Source code"));
+5 -13
View File
@@ -17,7 +17,7 @@
static QIcon loadHidpiIcon(const QString &resp, QSize sz = QSize(32, 32))
{
QPixmap pm = QPixmap(resp);
pm = pm.scaled(sz * qApp->devicePixelRatio(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
pm.scaled(sz * qApp->devicePixelRatio(), Qt::KeepAspectRatio);
pm.setDevicePixelRatio(qApp->devicePixelRatio());
return QIcon(pm);
}
@@ -146,8 +146,7 @@ void ActionManager::setupAction(MainWindow *mainWindow)
void ActionManager::setupShortcuts()
{
actionCopyPixmap->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_C));
actionCopyFilePath->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_C));
actionCopyPixmap->setShortcut(QKeySequence::Copy);
actionPrevPicture->setShortcuts({
QKeySequence(Qt::Key_Left),
@@ -158,20 +157,13 @@ void ActionManager::setupShortcuts()
QKeySequence(Qt::Key_PageDown),
});
actionFitToScreen->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_0));
actionActualSize->setShortcut(QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_0));
actionActualSize->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_0));
actionZoomIn->setShortcut(QKeySequence::ZoomIn);
actionZoomOut->setShortcut(QKeySequence::ZoomOut);
actionFlipHorizontal->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_M));
actionFlipVertical->setShortcut(QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_M));
actionRotateClockwise->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Comma));
actionRotateCounterClockwise->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Period));
actionTrash->setShortcut(QKeySequence::Delete);
actionProperties->setShortcut(QKeySequence(Qt::ALT | Qt::Key_Enter));
actionProperties->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_I));
actionSettings->setShortcut(QKeySequence::Preferences);
actionHelp->setShortcut(QKeySequence::HelpContents);
}
+1
View File
@@ -22,6 +22,7 @@ public:
void setupAction(MainWindow * mainWindow);
void setupShortcuts();
public slots:
void updateActionState(PlaylistManager* pm, GraphicsView* gv);
public:
+10 -5
View File
@@ -21,26 +21,29 @@
static const QColor& ColorSchemaToTextForeground(Qt::ColorScheme colorScheme) {
// YYC MARK:
// If we are using Windows 10 and lower system, we should only support light mode.
// If we are using Windows 10 and lower system or Qt which do not support "Windows 11"
// theme (lower than Qt 6.7), we should only support light mode.
// Because Qt's dark-mode-aware "Windows 11" theme is only well-supported on Windows 11.
#if defined(Q_OS_WIN)
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
colorScheme = Qt::ColorScheme::Light;
#else
if (QOperatingSystemVersion::current() < QOperatingSystemVersion::Windows11) {
colorScheme = Qt::ColorScheme::Light;
}
#endif // QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
#endif // defined(Q_OS_WIN)
switch (colorScheme) {
case Qt::ColorScheme::Dark: {
case Qt::ColorScheme::Dark:
static QColor WHITE = QColor("White");
return WHITE;
}
case Qt::ColorScheme::Light:
case Qt::ColorScheme::Unknown:
default: {
default:
static QColor BLACK = QColor("Black");
return BLACK;
}
}
}
class PGraphicsPixmapItem : public QGraphicsPixmapItem
@@ -159,9 +162,11 @@ void GraphicsScene::showSvg(const QString &filepath)
this->clear();
QGraphicsSvgItem * svgItem = new QGraphicsSvgItem();
QSvgRenderer * render = new QSvgRenderer(svgItem);
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
if (Settings::instance()->svgTiny12Only()) {
render->setOptions(QtSvg::Tiny12FeaturesOnly);
}
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
render->load(filepath);
svgItem->setSharedRenderer(render);
this->addItem(svgItem);
+16 -1
View File
@@ -57,6 +57,7 @@ void GraphicsView::showFileFromPath(const QString &filePath)
} else if (!imageReader.canRead()) {
showText(tr("Image data is invalid or currently unsupported"));
} else {
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
QImage && img = imageReader.read();
if (img.isNull()) {
showText(tr("Image data is invalid or currently unsupported"));
@@ -67,6 +68,15 @@ void GraphicsView::showFileFromPath(const QString &filePath)
img.setDevicePixelRatio(devicePixelRatioF());
showImage(img);
}
#else
QPixmap && pixmap = QPixmap::fromImageReader(&imageReader);
if (pixmap.isNull()) {
showText(tr("Image data is invalid or currently unsupported"));
} else {
pixmap.setDevicePixelRatio(devicePixelRatioF());
showImage(pixmap);
}
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
}
}
}
@@ -356,12 +366,17 @@ QTransform GraphicsView::resetScale(const QTransform & orig)
void GraphicsView::updateStyle(Qt::ColorScheme colorScheme) {
// YYC MARK:
// If we are using Windows 10 and lower system, we should only support light mode.
// If we are using Windows 10 and lower system or Qt which do not support "Windows 11"
// theme (lower than Qt 6.7), we should only support light mode.
// Because Qt's dark-mode-aware "Windows 11" theme is only well-supported on Windows 11.
#if defined(Q_OS_WIN)
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
colorScheme = Qt::ColorScheme::Light;
#else
if (QOperatingSystemVersion::current() < QOperatingSystemVersion::Windows11) {
colorScheme = Qt::ColorScheme::Light;
}
#endif // QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
#endif // defined(Q_OS_WIN)
switch (colorScheme) {
+5 -9
View File
@@ -20,8 +20,8 @@ using namespace Qt::Literals::StringLiterals;
int main(int argc, char *argv[])
{
QCoreApplication::setApplicationName(u"SCW Photo Viewer"_s);
QCoreApplication::setApplicationVersion(SCWPIC_VERSION_STRING);
QCoreApplication::setApplicationName(u"Pineapple Pictures"_s);
QCoreApplication::setApplicationVersion(PPIC_VERSION_STRING);
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Settings::instance()->hiDpiScaleFactorBehavior());
QApplication a(argc, argv);
@@ -34,11 +34,11 @@ int main(int argc, char *argv[])
#else
const QString qmDir = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath("translations");
#endif
if (translator.load(QLocale(), u"SCWPicture"_s, u"_"_s, qmDir)) {
if (translator.load(QLocale(), u"PineapplePictures"_s, u"_"_s, qmDir)) {
QCoreApplication::installTranslator(&translator);
}
QGuiApplication::setApplicationDisplayName(QCoreApplication::translate("main", "SCW Photo Viewer"));
QGuiApplication::setApplicationDisplayName(QCoreApplication::translate("main", "Pineapple Pictures"));
// commandline options
QCommandLineOption supportedImageFormats(u"supported-image-formats"_s, QCoreApplication::translate("main", "List supported image format suffixes, and quit program."));
@@ -78,11 +78,7 @@ int main(int argc, char *argv[])
// Handle dock icon clicks to show hidden window
a.connect(&a, &QApplication::applicationStateChanged, [&w](Qt::ApplicationState state) {
if (state == Qt::ApplicationActive && w.isHidden()) {
// 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.showFiles({});
w.galleryCurrent(false);
w.showNormal();
w.raise();
+5 -2
View File
@@ -180,7 +180,6 @@ MainWindow::MainWindow(QWidget *parent)
MainWindow::~MainWindow()
{
delete m_am;
delete ui;
}
@@ -257,7 +256,11 @@ void MainWindow::galleryCurrent(bool fromFileWatcher)
QStringList MainWindow::supportedImageFormats()
{
QStringList formatFilters;
QStringList formatFilters {
#if QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
QStringLiteral("*.jfif")
#endif // QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
};
for (const QByteArray &item : QImageReader::supportedImageFormats()) {
formatFilters.append(QStringLiteral("*.") % QString::fromLocal8Bit(item));
}
+6 -1
View File
@@ -43,12 +43,17 @@ void NavigatorView::updateMainViewportRegion()
void NavigatorView::updateStyle(Qt::ColorScheme colorScheme) {
// YYC MARK:
// If we are using Windows 10 and lower system, we should only support light mode.
// If we are using Windows 10 and lower system or Qt which do not support "Windows 11"
// theme (lower than Qt 6.7), we should only support light mode.
// Because Qt's dark-mode-aware "Windows 11" theme is only well-supported on Windows 11.
#if defined(Q_OS_WIN)
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
colorScheme = Qt::ColorScheme::Light;
#else
if (QOperatingSystemVersion::current() < QOperatingSystemVersion::Windows11) {
colorScheme = Qt::ColorScheme::Light;
}
#endif // QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
#endif // defined(Q_OS_WIN)
switch (colorScheme) {
-9
View File
@@ -13,15 +13,6 @@
#include <optional>
// YYC MARK:
// <exdisp.h> is not self-contained: it only includes <rpc.h>/<rpcndr.h> before
// emitting `typedef interface ...` forward declarations, while the `interface`
// macro (defined as `struct` for C++) lives in <combaseapi.h>, which is pulled
// in via the <objbase.h> chain. Without this prelude, MSVC fails to parse those
// forward declarations (C2146/C2371) and every IShellWindows usage breaks.
// (Qt headers do not include <windows.h>, so nothing else provides it here.)
#include <objbase.h>
#include <exdisp.h> // IShellWindows, CLSID_ShellWindows
#include <servprov.h> // IServiceProvider
#include <shlguid.h> // SID_STopLevelBrowser
+35 -32
View File
@@ -49,40 +49,35 @@ private:
Pairs pairs;
};
static EnumComboBoxTransformer<Settings::MouseWheelBehavior, QString> MW_OPTIONS {
{
{ Settings::MouseWheelBehavior::Zoom, QCoreApplication::translate("SettingsDialog", "Zoom in and out") },
{ Settings::MouseWheelBehavior::Switch, QCoreApplication::translate("SettingsDialog", "View next or previous item") }
}
};
static EnumComboBoxTransformer<Settings::WindowSizeBehavior, QString> IWS_OPTIONS {
{
{ Settings::WindowSizeBehavior::Maximized, QCoreApplication::translate("SettingsDialog", "Maximized") },
{ Settings::WindowSizeBehavior::Windowed, QCoreApplication::translate("SettingsDialog", "Windowed") }
}
};
static EnumComboBoxTransformer<Qt::HighDpiScaleFactorRoundingPolicy, QString> HIDPI_OPTIONS {
{
{ Qt::HighDpiScaleFactorRoundingPolicy::Round, QCoreApplication::translate("SettingsDialog", "Round (Integer scaling)", "This option means round up for .5 and above") },
{ Qt::HighDpiScaleFactorRoundingPolicy::Ceil, QCoreApplication::translate("SettingsDialog", "Ceil (Integer scaling)", "This option means always round up") },
{ Qt::HighDpiScaleFactorRoundingPolicy::Floor, QCoreApplication::translate("SettingsDialog", "Floor (Integer scaling)", "This option means always round down") },
{ Qt::HighDpiScaleFactorRoundingPolicy::PassThrough, QCoreApplication::translate("SettingsDialog", "Follow system (Fractional scaling)", "This option means don't round") }
}
};
SettingsDialog::SettingsDialog(QWidget *parent)
: QDialog(parent), ui(new QT_PREPEND_NAMESPACE(Ui::SettingsDialog))
{
ui->setupUi(this);
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
// YYC MARK:
// These transformers must stay as function-local statics: their initialization
// evaluates QCoreApplication::translate(), which returns translated text only
// after the QTranslator is installed in main(). Namespace-scope statics would
// be initialized before that and always keep the untranslated source text.
static EnumComboBoxTransformer<Settings::MouseWheelBehavior, QString> MW_OPTIONS {
{
{ Settings::MouseWheelBehavior::Zoom, QCoreApplication::translate("SettingsDialog", "Zoom in and out") },
{ Settings::MouseWheelBehavior::Switch, QCoreApplication::translate("SettingsDialog", "View next or previous item") }
}
};
static EnumComboBoxTransformer<Settings::WindowSizeBehavior, QString> IWS_OPTIONS {
{
{ Settings::WindowSizeBehavior::Maximized, QCoreApplication::translate("SettingsDialog", "Maximized") },
{ Settings::WindowSizeBehavior::Windowed, QCoreApplication::translate("SettingsDialog", "Windowed") }
}
};
static EnumComboBoxTransformer<Qt::HighDpiScaleFactorRoundingPolicy, QString> HIDPI_OPTIONS {
{
{ Qt::HighDpiScaleFactorRoundingPolicy::Round, QCoreApplication::translate("SettingsDialog", "Round (Integer scaling)", "This option means round up for .5 and above") },
{ Qt::HighDpiScaleFactorRoundingPolicy::Ceil, QCoreApplication::translate("SettingsDialog", "Ceil (Integer scaling)", "This option means always round up") },
{ Qt::HighDpiScaleFactorRoundingPolicy::Floor, QCoreApplication::translate("SettingsDialog", "Floor (Integer scaling)", "This option means always round down") },
{ Qt::HighDpiScaleFactorRoundingPolicy::PassThrough, QCoreApplication::translate("SettingsDialog", "Follow system (Fractional scaling)", "This option means don't round") }
}
};
auto* settings = Settings::instance();
ui->m_showNavigatorView->setChecked(Settings::instance()->showNavigatorView());
ui->m_useLightCheckerboard->setChecked(settings->useLightCheckerboard());
@@ -98,19 +93,27 @@ SettingsDialog::SettingsDialog(QWidget *parent)
Qt::HighDpiScaleFactorRoundingPolicy hidpi = settings->hiDpiScaleFactorBehavior();
ui->m_hiDpiRoundingPolicyBehavior->setCurrentIndex(HIDPI_OPTIONS.to_index(hidpi));
connect(ui->m_showNavigatorView, &QCheckBox::checkStateChanged, this, [ = ](Qt::CheckState state){
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
# define QCHECKBOX_CHECKSTATECHANGED QCheckBox::checkStateChanged
# define QT_CHECKSTATE Qt::CheckState
#else
# define QCHECKBOX_CHECKSTATECHANGED QCheckBox::stateChanged
# define QT_CHECKSTATE int
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
connect(ui->m_showNavigatorView, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
Settings::instance()->setShowNavigatorView(state == Qt::Checked);
});
connect(ui->m_useLightCheckerboard, &QCheckBox::checkStateChanged, this, [ = ](Qt::CheckState state){
connect(ui->m_useLightCheckerboard, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
Settings::instance()->setUseLightCheckerboard(state == Qt::Checked);
});
connect(ui->m_loopGallery, &QCheckBox::checkStateChanged, this, [ = ](Qt::CheckState state){
connect(ui->m_loopGallery, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
Settings::instance()->setLoopGallery(state == Qt::Checked);
});
connect(ui->m_svgTiny12Only, &QCheckBox::checkStateChanged, this, [ = ](Qt::CheckState state){
connect(ui->m_svgTiny12Only, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
Settings::instance()->setSvgTiny12Only(state == Qt::Checked);
});
+5 -2
View File
@@ -14,13 +14,16 @@
<span>%3</span><span>:&nbsp;</span><a href='https://github.com/BLumia'>@BLumia</a>
<br/>
<span>%4</span><span>:&nbsp;</span><a href='https://github.com/yyc12345'>@yyc12345</a>
<br/>
<!-- Icon author -->
<span>%5</span><span>:&nbsp;</span><a href='https://github.com/Lovelyblack'>@Lovelyblack</a>
</p>
<hr/>
<p>
<!-- Built Qt version info -->
<span>%5</span>
<span>%6</span>
<br/>
<!-- Source code -->
<span>%6</span><span>:&nbsp;</span><a href='https://github.com/SarasasChipWorkshop/sarasacw-picture'>GitHub</a>
<span>%7</span><span>:&nbsp;</span><a href='https://github.com/BLumia/pineapple-pictures'>GitHub</a>
</p>
</center>
-1
View File
@@ -8,7 +8,6 @@
Expat/MIT License
Copyright &copy; 2026 BLumia
Copyright &copy; 2026 Sarasa's Chip Workshop
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+1 -2
View File
@@ -1,7 +1,7 @@
<!-- Contributor title -->
<h1 align='center'>%1</h1>
<!-- Contributor list -->
<a href='https://github.com/SarasasChipWorkshop/sarasacw-picture/graphs/contributors'>%2</a>
<a href='https://github.com/BLumia/pineapple-pictures/graphs/contributors'>%2</a>
<!-- The message to thank these contributors -->
<p>%3</p>
@@ -10,7 +10,6 @@
<!-- The message to thank these translators -->
<p>%5</p>
<ul>
<li><u>Arabic</u>: Tech-Tac</li>
<li><u>Catalan</u>: Toni Estévez</li>
<li><u>Chinese (Simplified)</u>: Percy Hong</li>
<li><u>Dutch</u>: Heimen Stoffels</li>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

-307
View File
@@ -1,307 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">
<Identity Name="SarasasChipWorkshop.Picture" Publisher="CN=Sarasa's Chip Workshop, O=Sarasa's Chip Workshop, C=CN" Version="@PROJECT_VERSION@.0" />
<Properties>
<DisplayName>ms-resource:AppDisplayName</DisplayName>
<PublisherDisplayName>ms-resource:PublisherDisplayName</PublisherDisplayName>
<Logo>Assets\SarasasChipWorkshop.Picture.StoreLogo.png</Logo>
</Properties>
<Resources>
{% for lang in langs %}
<Resource Language="{{ lang }}" />
{% endfor %}
</Resources>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.22000.0" MaxVersionTested="10.0.26100.0" />
</Dependencies>
<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
<Applications>
<Application Id="SarasasChipWorkshop.Picture" Executable="MyApp\scwpic.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements
DisplayName="ms-resource:AppDisplayName"
Description="ms-resource:AppDescription"
BackgroundColor="transparent"
Square44x44Logo="Assets\SarasasChipWorkshop.Picture.Square44x44Logo.png"
Square150x150Logo="Assets\SarasasChipWorkshop.Picture.Square150x150Logo.png" />
<Extensions>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="jpegimages">
<uap:DisplayName>ms-resource:FileTypeJpegDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.jfif</uap:FileType>
<uap:FileType>.jpeg</uap:FileType>
<uap:FileType>.jpg</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="gifimages">
<uap:DisplayName>ms-resource:FileTypeGifDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\gif.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.gif</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="pngimages">
<uap:DisplayName>ms-resource:FileTypePngDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.apng</uap:FileType>
<uap:FileType>.png</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="svgimages">
<uap:DisplayName>ms-resource:FileTypeSvgDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.svg</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="webpimages">
<uap:DisplayName>ms-resource:FileTypeWebpDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.webp</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="avifimages">
<uap:DisplayName>ms-resource:FileTypeAvifDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.avif</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="icoimages">
<uap:DisplayName>ms-resource:FileTypeIcoDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.ico</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="icnsimages">
<uap:DisplayName>ms-resource:FileTypeIcnsDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.icns</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="psdimages">
<uap:DisplayName>ms-resource:FileTypePsdDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.pdd</uap:FileType>
<uap:FileType>.psb</uap:FileType>
<uap:FileType>.psd</uap:FileType>
<uap:FileType>.psdt</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="kraimages">
<uap:DisplayName>ms-resource:FileTypeKraDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.kra</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="xcfimages">
<uap:DisplayName>ms-resource:FileTypeXcfDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.xcf</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="tgaimages">
<uap:DisplayName>ms-resource:FileTypeTgaDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.tga</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="tifimages">
<uap:DisplayName>ms-resource:FileTypeTifDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.tif</uap:FileType>
<uap:FileType>.tiff</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="bmpimages">
<uap:DisplayName>ms-resource:FileTypeBmpDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.bmp</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="wbmpimages">
<uap:DisplayName>ms-resource:FileTypeWbmpDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.wbmp</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="ddsimages">
<uap:DisplayName>ms-resource:FileTypeDdsDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.dds</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="hdrimages">
<uap:DisplayName>ms-resource:FileTypeHdrDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.exr</uap:FileType>
<uap:FileType>.hdr</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="iffimages">
<uap:DisplayName>ms-resource:FileTypeIffDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.iff</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="picimages">
<uap:DisplayName>ms-resource:FileTypePicDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.pic</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="pcximages">
<uap:DisplayName>ms-resource:FileTypePcxDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.pcx</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="qoiimages">
<uap:DisplayName>ms-resource:FileTypeQoiDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.qoi</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="rasimages">
<uap:DisplayName>ms-resource:FileTypeRasDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.ras</uap:FileType>
<uap:FileType>.sun</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="oraimages">
<uap:DisplayName>ms-resource:FileTypeOraDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.ora</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="aniimages">
<uap:DisplayName>ms-resource:FileTypeAniDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\gif.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.ani</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="pfmimages">
<uap:DisplayName>ms-resource:FileTypePfmDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.pfm</uap:FileType>
<uap:FileType>.phm</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="rgbimages">
<uap:DisplayName>ms-resource:FileTypeRgbDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.bw</uap:FileType>
<uap:FileType>.rgb</uap:FileType>
<uap:FileType>.rgba</uap:FileType>
<uap:FileType>.sgi</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="pxrimages">
<uap:DisplayName>ms-resource:FileTypePxrDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.pxr</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="sctimages">
<uap:DisplayName>ms-resource:FileTypeSctDisplayName</uap:DisplayName>
<uap:Logo>Assets\FileAssoc\svg.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.sct</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
</Extensions>
</Application>
</Applications>
</Package>
-126
View File
@@ -1,126 +0,0 @@
version = 1
source_language = "en_US"
[strings.app_display_name]
msgid = "SCW Photo Viewer"
comment = "Display name of the application, referenced as ms-resource:AppDisplayName."
[strings.publisher_display_name]
msgid = "Sarasa's Chip Workshop"
comment = "Publisher display name, referenced as ms-resource:PublisherDisplayName."
[strings.app_description]
msgid = "Yet another legacy Windows Photo Viewer with cross-platform support."
comment = "Application description, referenced as ms-resource:AppDescription."
[strings.file_type_jpeg]
msgid = "JPEG Image"
comment = "Display name of the JPEG file type association (jpg, jpeg, jfif), referenced as ms-resource:FileTypeJpegDisplayName."
[strings.file_type_gif]
msgid = "GIF Animation Image"
comment = "Display name of the GIF file type association, referenced as ms-resource:FileTypeGifDisplayName."
[strings.file_type_png]
msgid = "PNG Image"
comment = "Display name of the PNG file type association (png, apng), referenced as ms-resource:FileTypePngDisplayName."
[strings.file_type_svg]
msgid = "Scalable Vector Graphics"
comment = "Display name of the SVG file type association, referenced as ms-resource:FileTypeSvgDisplayName."
[strings.file_type_webp]
msgid = "WebP Image"
comment = "Display name of the WebP file type association, referenced as ms-resource:FileTypeWebpDisplayName."
[strings.file_type_avif]
msgid = "AV1 Image File"
comment = "Display name of the AVIF file type association, referenced as ms-resource:FileTypeAvifDisplayName."
[strings.file_type_ico]
msgid = "Windows Icon Image"
comment = "Display name of the ICO file type association, referenced as ms-resource:FileTypeIcoDisplayName."
[strings.file_type_icns]
msgid = "Apple Icon Image"
comment = "Display name of the ICNS file type association, referenced as ms-resource:FileTypeIcnsDisplayName."
[strings.file_type_psd]
msgid = "Photoshop Document"
comment = "Display name of the Photoshop file type association (psd, psb, pdd, psdt), referenced as ms-resource:FileTypePsdDisplayName."
[strings.file_type_kra]
msgid = "Krita Document"
comment = "Display name of the Krita file type association, referenced as ms-resource:FileTypeKraDisplayName."
[strings.file_type_xcf]
msgid = "GIMP Document"
comment = "Display name of the GIMP file type association, referenced as ms-resource:FileTypeXcfDisplayName."
[strings.file_type_tga]
msgid = "TARGA Image"
comment = "Display name of the TARGA file type association, referenced as ms-resource:FileTypeTgaDisplayName."
[strings.file_type_tif]
msgid = "Tagged Image File Format"
comment = "Display name of the TIFF file type association (tif, tiff), referenced as ms-resource:FileTypeTifDisplayName."
[strings.file_type_bmp]
msgid = "Bitmap"
comment = "Display name of the BMP file type association, referenced as ms-resource:FileTypeBmpDisplayName."
[strings.file_type_wbmp]
msgid = "Wireless Bitmap"
comment = "Display name of the WBMP file type association, referenced as ms-resource:FileTypeWbmpDisplayName."
[strings.file_type_dds]
msgid = "DirectDraw Surface"
comment = "Display name of the DDS file type association, referenced as ms-resource:FileTypeDdsDisplayName."
[strings.file_type_hdr]
msgid = "High Dynamic Range Image"
comment = "Display name of the HDR file type association (hdr, exr), referenced as ms-resource:FileTypeHdrDisplayName."
[strings.file_type_iff]
msgid = "Interchange File Format"
comment = "Display name of the IFF file type association, referenced as ms-resource:FileTypeIffDisplayName."
[strings.file_type_pic]
msgid = "Softimage Picture"
comment = "Display name of the Softimage PIC file type association, referenced as ms-resource:FileTypePicDisplayName."
[strings.file_type_pcx]
msgid = "PiCture eXchange PC Paintbrush Image"
comment = "Display name of the PCX file type association, referenced as ms-resource:FileTypePcxDisplayName."
[strings.file_type_qoi]
msgid = "Quite OK Image"
comment = "Display name of the QOI file type association, referenced as ms-resource:FileTypeQoiDisplayName."
[strings.file_type_ras]
msgid = "Sun Raster Image"
comment = "Display name of the Sun Raster file type association (ras, sun), referenced as ms-resource:FileTypeRasDisplayName."
[strings.file_type_ora]
msgid = "OpenRaster Image"
comment = "Display name of the OpenRaster file type association, referenced as ms-resource:FileTypeOraDisplayName."
[strings.file_type_ani]
msgid = "Animated Cursor"
comment = "Display name of the ANI file type association, referenced as ms-resource:FileTypeAniDisplayName."
[strings.file_type_pfm]
msgid = "Portable Float Map"
comment = "Display name of the Portable Float Map file type association (pfm, phm), referenced as ms-resource:FileTypePfmDisplayName."
[strings.file_type_rgb]
msgid = "Silicon Graphics Image"
comment = "Display name of the Silicon Graphics file type association (rgb, rgba, bw, sgi), referenced as ms-resource:FileTypeRgbDisplayName."
[strings.file_type_pxr]
msgid = "Pixar Raster Image"
comment = "Display name of the Pixar file type association, referenced as ms-resource:FileTypePxrDisplayName."
[strings.file_type_sct]
msgid = "Scitex Continuous Tone"
comment = "Display name of the Scitex CT file type association, referenced as ms-resource:FileTypeSctDisplayName."
-26
View File
@@ -1,26 +0,0 @@
version = 1
source_language = "en"
[strings.app_name]
msgid = "SCW Photo Viewer"
comment = "Display name of the application."
[strings.file_type_jpeg]
msgid = "JPEG Image"
comment = "Name of the JPEG document type (jpg, jpeg, jfif)."
[strings.file_type_png]
msgid = "PNG Image"
comment = "Name of the PNG document type."
[strings.file_type_webp]
msgid = "WebP Image"
comment = "Name of the WebP document type."
[strings.file_type_gif]
msgid = "GIF Image"
comment = "Name of the GIF document type."
[strings.file_type_svg]
msgid = "SVG Image"
comment = "Name of the SVG document type."
-8
View File
@@ -1,8 +0,0 @@
/* Application display name. The key is the Info.plist key name. */
"CFBundleName" = "{{ strings.app_name | plist_strings_escape }}";
/* File type names. The key is the source text, covering CFBundleTypeName. */
"{{ sources.file_type_jpeg | plist_strings_escape }}" = "{{ strings.file_type_jpeg | plist_strings_escape }}";
"{{ sources.file_type_png | plist_strings_escape }}" = "{{ strings.file_type_png | plist_strings_escape }}";
"{{ sources.file_type_webp | plist_strings_escape }}" = "{{ strings.file_type_webp | plist_strings_escape }}";
"{{ sources.file_type_gif | plist_strings_escape }}" = "{{ strings.file_type_gif | plist_strings_escape }}";
"{{ sources.file_type_svg | plist_strings_escape }}" = "{{ strings.file_type_svg | plist_strings_escape }}";
+23 -16
View File
@@ -14,8 +14,10 @@
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
<key>CFBundleName</key>
<string>{{ default.strings.app_name | xml_escape }}</string>
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
@@ -27,23 +29,28 @@
<key>CSResourcesFileMapped</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>MIT/Expat License - Copyright (C) 2026 Sarasa's Chip Workshop</string>
<!--
CFBundleLocalizations is generated from the metadata localization languages (the metaglot
"langs" list), while this field by definition describes the application's language
availability. This deviation works around an upstream Qt bug: since the Qt 6.7.0 refactor,
the CMake function _qt_internal_store_languages_from_ts_files_in_targets loses the parsed
TS language codes (a missing list(APPEND)), so Qt's own CFBundleLocalizations generation
yields an empty list. Consistency between the metadata languages and the application
languages is maintained manually at release time.
TODO: drop this workaround and let Qt generate CFBundleLocalizations itself once the
upstream bug is fixed and the fix ships in the CI toolchain.
-->
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
<!-- FIXME: this list can't be automatically generated by Qt's CMake API, don't know why. -->
<key>CFBundleLocalizations</key>
<array>
{% for lang in langs %}
<string>{{ lang }}</string>
{% endfor %}
<string>en</string>
<string>ca</string>
<string>de</string>
<string>es</string>
<string>fr</string>
<string>id</string>
<string>it</string>
<string>ja</string>
<string>ko</string>
<string>nb_NO</string>
<string>nl</string>
<string>pa_PK</string>
<string>ru</string>
<string>si</string>
<string>ta</string>
<string>tr</string>
<string>uk</string>
<string>zh_CN</string>
</array>
<key>CFBundleDocumentTypes</key>
<array>
-33
View File
@@ -1,33 +0,0 @@
{
"AppDisplayName": "{{ strings.app_display_name | json_escape }}",
"PublisherDisplayName": "{{ strings.publisher_display_name | json_escape }}",
"AppDescription": "{{ strings.app_description | json_escape }}",
"FileTypeJpegDisplayName": "{{ strings.file_type_jpeg | json_escape }}",
"FileTypeGifDisplayName": "{{ strings.file_type_gif | json_escape }}",
"FileTypePngDisplayName": "{{ strings.file_type_png | json_escape }}",
"FileTypeSvgDisplayName": "{{ strings.file_type_svg | json_escape }}",
"FileTypeWebpDisplayName": "{{ strings.file_type_webp | json_escape }}",
"FileTypeAvifDisplayName": "{{ strings.file_type_avif | json_escape }}",
"FileTypeIcoDisplayName": "{{ strings.file_type_ico | json_escape }}",
"FileTypeIcnsDisplayName": "{{ strings.file_type_icns | json_escape }}",
"FileTypePsdDisplayName": "{{ strings.file_type_psd | json_escape }}",
"FileTypeKraDisplayName": "{{ strings.file_type_kra | json_escape }}",
"FileTypeXcfDisplayName": "{{ strings.file_type_xcf | json_escape }}",
"FileTypeTgaDisplayName": "{{ strings.file_type_tga | json_escape }}",
"FileTypeTifDisplayName": "{{ strings.file_type_tif | json_escape }}",
"FileTypeBmpDisplayName": "{{ strings.file_type_bmp | json_escape }}",
"FileTypeWbmpDisplayName": "{{ strings.file_type_wbmp | json_escape }}",
"FileTypeDdsDisplayName": "{{ strings.file_type_dds | json_escape }}",
"FileTypeHdrDisplayName": "{{ strings.file_type_hdr | json_escape }}",
"FileTypeIffDisplayName": "{{ strings.file_type_iff | json_escape }}",
"FileTypePicDisplayName": "{{ strings.file_type_pic | json_escape }}",
"FileTypePcxDisplayName": "{{ strings.file_type_pcx | json_escape }}",
"FileTypeQoiDisplayName": "{{ strings.file_type_qoi | json_escape }}",
"FileTypeRasDisplayName": "{{ strings.file_type_ras | json_escape }}",
"FileTypeOraDisplayName": "{{ strings.file_type_ora | json_escape }}",
"FileTypeAniDisplayName": "{{ strings.file_type_ani | json_escape }}",
"FileTypePfmDisplayName": "{{ strings.file_type_pfm | json_escape }}",
"FileTypeRgbDisplayName": "{{ strings.file_type_rgb | json_escape }}",
"FileTypePxrDisplayName": "{{ strings.file_type_pxr | json_escape }}",
"FileTypeSctDisplayName": "{{ strings.file_type_sct | json_escape }}"
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

View File
File renamed without changes.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 132 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 756 B

After

Width:  |  Height:  |  Size: 787 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

After

Width:  |  Height:  |  Size: 281 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.
@@ -3,8 +3,8 @@ Type=Application
Name={{ default.strings.name | desktop_escape }}
GenericName={{ default.strings.generic_name | desktop_escape }}
Comment={{ default.strings.comment | desktop_escape }}
Exec=scwpic %F
Icon=org.sarasaschipworkshop.picture
Exec=ppic %F
Icon=net.blumia.pineapple-pictures
Terminal=false
StartupNotify=false
Categories=Graphics;
@@ -2,7 +2,7 @@ version = 1
source_language = "en"
[strings.name]
msgid = "SCW Photo Viewer"
msgid = "Pineapple Pictures"
comment = "Display name of the application."
[strings.generic_name]
@@ -10,7 +10,7 @@ msgid = "Image Viewer"
comment = "Generic name describing the application category."
[strings.comment]
msgid = "SCW Photo Viewer is a lightweight image viewer"
msgid = "Pineapple Pictures is a lightweight image viewer"
comment = "Tooltip-like description of the application."
[strings.keywords]
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop-application">
<id>org.sarasaschipworkshop.picture</id>
<id>net.blumia.pineapple-pictures</id>
<name>{{ default.strings.name | xml_escape }}</name>
{% for lang in languages %}
<name xml:lang="{{ lang.lang }}">{{ lang.strings.name | xml_escape }}</name>
@@ -17,21 +17,44 @@
<p xml:lang="{{ lang.lang }}">{{ lang.strings.description | xml_escape }}</p>
{% endfor %}
</description>
<developer id="org.sarasaschipworkshop">
<developer id="net.blumia">
<name>{{ default.strings.developer_name | xml_escape }}</name>
{% for lang in languages %}
<name xml:lang="{{ lang.lang }}">{{ lang.strings.developer_name | xml_escape }}</name>
{% endfor %}
</developer>
<launchable type="desktop-id">org.sarasaschipworkshop.picture.desktop</launchable>
<url type="homepage">https://github.com/SarasasChipWorkshop/sarasacw-picture</url>
<url type="bugtracker">https://github.com/SarasasChipWorkshop/sarasacw-picture/issues</url>
<url type="translate">https://github.com/SarasasChipWorkshop/sarasacw-picture</url>
<url type="vcs-browser">https://github.com/SarasasChipWorkshop/sarasacw-picture</url>
<launchable type="desktop-id">net.blumia.pineapple-pictures.desktop</launchable>
<url type="homepage">https://github.com/BLumia/pineapple-pictures</url>
<url type="bugtracker">https://github.com/BLumia/pineapple-pictures/issues</url>
<url type="donation">https://ko-fi.com/blumia</url>
<url type="translate">https://hosted.weblate.org/projects/pineapple-pictures/</url>
<url type="vcs-browser">https://github.com/BLumia/pineapple-pictures</url>
<provides>
<binary>scwpic</binary>
<binary>ppic</binary>
</provides>
<!-- TODO: Add new screenshots for SCW Photo Viewer here, in an AppStream <screenshots> section, once screenshots are available. -->
<screenshots>
<screenshot type="default">
<caption>{{ default.strings.screenshot_caption_main | xml_escape }}</caption>
{% for lang in languages %}
<caption xml:lang="{{ lang.lang }}">{{ lang.strings.screenshot_caption_main | xml_escape }}</caption>
{% endfor %}
<image type="source" width="1503" height="640">https://pineapple-pictures.sourceforge.io/ppic-gui-static.png</image>
</screenshot>
<screenshot>
<caption>{{ default.strings.screenshot_caption_raster | xml_escape }}</caption>
{% for lang in languages %}
<caption xml:lang="{{ lang.lang }}">{{ lang.strings.screenshot_caption_raster | xml_escape }}</caption>
{% endfor %}
<image type="source" width="771" height="553">https://pineapple-pictures.sourceforge.io/ppic-zoom-raster.png</image>
</screenshot>
<screenshot>
<caption>{{ default.strings.screenshot_caption_vector | xml_escape }}</caption>
{% for lang in languages %}
<caption xml:lang="{{ lang.lang }}">{{ lang.strings.screenshot_caption_vector | xml_escape }}</caption>
{% endfor %}
<image type="source" width="771" height="553">https://pineapple-pictures.sourceforge.io/ppic-zoom-svg.png</image>
</screenshot>
</screenshots>
<releases>
<release type="stable" version="1.6.0" date="2026-08-22T00:00:00Z">
<description>
+30
View File
@@ -0,0 +1,30 @@
version = 1
source_language = "en"
[strings.name]
msgid = "Pineapple Pictures"
comment = "Display name of the application."
[strings.summary]
msgid = "Image Viewer"
comment = "One-line summary shown in software centers."
[strings.description]
msgid = "Pineapple Pictures is a lightweight and easy-to-use image viewer that comes with a handy navigation thumbnail when zoom-in, and doesn't contain any image management support."
comment = "Description paragraph shown in the details page."
[strings.developer_name]
msgid = "Gary (BLumia) Wang et al."
comment = "Name of the application developers."
[strings.screenshot_caption_main]
msgid = "Main window when an image file is loaded"
comment = "Caption of the primary screenshot."
[strings.screenshot_caption_raster]
msgid = "Zooming in a raster image"
comment = "Caption of the raster image zooming screenshot."
[strings.screenshot_caption_vector]
msgid = "Zooming in a vector image"
comment = "Caption of the vector image zooming screenshot."
-18
View File
@@ -1,18 +0,0 @@
version = 1
source_language = "en"
[strings.name]
msgid = "SCW Photo Viewer"
comment = "Display name of the application."
[strings.summary]
msgid = "Image Viewer"
comment = "One-line summary shown in software centers."
[strings.description]
msgid = "SCW Photo Viewer is a lightweight and easy-to-use image viewer that comes with a handy navigation thumbnail when zoom-in, and doesn't contain any image management support."
comment = "Description paragraph shown in the details page."
[strings.developer_name]
msgid = "Sarasa's Chip Workshop"
comment = "Name of the application developers."
@@ -1,5 +1,5 @@
// Generated by MetaGlot. DO NOT EDIT.
// Sources: dist/sarasacw-picture.rc.in.toml, locales/winrc/*.po (CMake placeholders are substituted later).
// Sources: dist/pineapple-pictures.rc.in.toml, locales/winrc/*.po (CMake placeholders are substituted later).
#pragma code_page(65001)
@@ -7,12 +7,11 @@
// Icon resources (referenced from the registry as "<exe path>,-<id>")
// ---------------------------------------------------------------------------
101 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/winrc-icos/app.ico" // app
102 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/winrc-icos/bmp.ico" // bmp
103 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/winrc-icos/gif.ico" // gif
104 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/winrc-icos/jpg.ico" // jpg
105 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/winrc-icos/png.ico" // png
106 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/winrc-icos/svg.ico" // svg
101 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/app.ico" // app
102 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/bmp.ico" // bmp
103 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/gif.ico" // gif
104 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/jpg.ico" // jpg
105 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/png.ico" // png
// ---------------------------------------------------------------------------
// String tables (file type descriptions, referenced as "@<exe path>,-<id>")
@@ -53,13 +52,13 @@ BEGIN
BEGIN
BLOCK "{{ lang.block_key }}"
BEGIN
VALUE "Comments", "https://github.com/SarasasChipWorkshop/sarasacw-picture"
VALUE "CompanyName", "Sarasa's Chip Workshop"
VALUE "Comments", "https://github.com/BLumia/pineapple-pictures"
VALUE "CompanyName", "Gary Wang"
VALUE "FileDescription", "{{ lang.strings.file_description | rc_escape }}"
VALUE "FileVersion", "@PROJECT_VERSION@"
VALUE "InternalName", "scwpic"
VALUE "LegalCopyright", "MIT/Expat License - Copyright (C) 2026 Sarasa's Chip Workshop"
VALUE "OriginalFilename", "scwpic.exe"
VALUE "InternalName", "ppic"
VALUE "LegalCopyright", "MIT/Expat License - Copyright (C) 2026 Gary Wang"
VALUE "OriginalFilename", "ppic.exe"
VALUE "ProductName", "{{ lang.strings.product_name | rc_escape }}"
VALUE "ProductVersion", "@PROJECT_VERSION@"
END
@@ -2,7 +2,7 @@ version = 1
source_language = "en"
[strings.1000]
msgid = "SCW Photo Viewer"
msgid = "Pineapple Pictures"
context = "Explorer"
comment = "Application friendly name shown by Explorer, e.g. in the 'Open with' menu."
@@ -119,9 +119,9 @@ msgid = "Scitex Continuous Tone"
comment = "File type name for: sct"
[strings.file_description]
msgid = "Yet another legacy Windows Photo Viewer with cross-platform support."
msgid = "Pineapple Pictures - Image Viewer"
comment = "File description of the executable."
[strings.product_name]
msgid = "SCW Photo Viewer"
msgid = "Pineapple Pictures"
comment = "Display name of the product."
BIN
View File
Binary file not shown.
-4
View File
@@ -1,4 +0,0 @@
[CustomMessages]
MyAppName={{ strings.MyAppName | inno_escape }}
MyOther={{ strings.MyOther | inno_escape }}
MyAssociateWithFiles={{ strings.MyAssociateWithFiles | inno_escape }}
-394
View File
@@ -1,394 +0,0 @@
; Inno Setup script for the Windows installer of SCW Photo Viewer.
;
; ISCC.exe /DPublishDir=<publish-dir> /DOutputDir=<dist-dir> path\to\this.iss
;
#ifndef PublishDir
#error PublishDir must be specified when running this script. It specifies the directory from which Inno Setup retrieves the artifacts to be packaged.
#endif
#ifndef OutputDir
#error OutputDir must be specified when running this script. It specifies the directory in which Inno Setup writes the generated setup package.
#endif
#define MyAppName "SCW Photo Viewer"
#define MyAppVersion "@PROJECT_VERSION@"
#define MyAppPublisher "Sarasa's Chip Workshop"
#define MyAppURL "https://github.com/SarasasChipWorkshop/sarasacw-picture"
#define MyAppExeName "scwpic.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
{% comment %}
The escaped double opening brace in the AppId value below is wrapped in a Liquid raw block,
because it would otherwise open a Liquid output tag.
{% endcomment %}
AppId={% raw %}{{A90F12B1-1BD5-4816-994B-A3E95CCFF24E}{% endraw %}
AppName={cm:MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
; Explicit literals (via preprocessor defines): the Setup.exe version info resource
; must not fall back to AppName, because AppName carries an Inno constant and the
; fallback yields an empty string in that case.
VersionInfoDescription={#MyAppName} Setup
VersionInfoProductName={#MyAppName}
DefaultDirName={autopf}\sarasacw-picture
UninstallDisplayIcon={app}\{#MyAppExeName}
; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
; on anything but x64 and Windows 11 on Arm.
ArchitecturesAllowed=x64compatible
; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
; meaning it should use the native 64-bit Program Files directory and
; the 64-bit view of the registry.
ArchitecturesInstallIn64BitMode=x64compatible
ChangesAssociations=yes
DefaultGroupName={cm:MyAppName}
AllowNoIcons=yes
LicenseFile={#PublishDir}\LICENSE
; Uncomment the following line to run in non administrative install mode (install for current user only).
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputDir={#OutputDir}
OutputBaseFilename=scwpic-setup
SolidCompression=yes
WizardStyle=modern
[Languages]
{% comment %}
YYC MARK:
The base messages file pairing (the official full translation that provides
the language identity) is derived from MetaGlot's best-effort conversion of
the PO language tag to the conventional Inno Setup language name (lang.lang)
and its officiality (lang.is_official). A language without an official base
file - a community provided conventional name, or a language unknown to
MetaGlot which converts to nothing - is dropped instead of falling back:
every [Languages] entry inherits the language identity of its base file, and
"compiler:Default.isl" carries the English identity, so a fallback entry
would flood the setup language selection dialog with duplicate English
items. To keep such a language, ship its base messages file with the
installer and pair it explicitly (e.g. via a "case" on "lang.name"). The
incremental custom messages file is named after the conventional name; keep
it in sync with the "--isl-path" argument in CMakeLists.txt. The path
rendering loop is independent of the dropping decision, so a dropped
language still gets an (unreferenced) messages file written.
{% endcomment -%}
{% for lang in langs -%}
{%- if lang.is_official -%}
{%- if lang.lang == 'Default' -%}
{% assign base = 'compiler:Default.isl' -%}
{%- else -%}
{% assign base = 'compiler:Languages\' | append: lang.lang | append: '.isl' -%}
{%- endif -%}
Name: "{{ lang.name }}"; MessagesFile: "{{ base }},Strings\{{ lang.lang }}.isl"
{% else -%}
{%- comment -%}
unofficial or unmapped: dropped, since a Default.isl fallback would duplicate the English identity in the Select Language dialog
{%- endcomment -%}
{% endif -%}
{% endfor -%}
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "associatewithfiles"; Description: "{cm:MyAssociateWithFiles,{#MyAppName}}"; GroupDescription: "{cm:MyOther}"
[Files]
; YYC MARK:
; This script is compiled in place and retrieves the artifacts to be packaged
; from the directory given by the "PublishDir" define, which must contain
; "scwpic.exe" and the "LICENSE" file. Otherwise exception will be thrown.
Source: "{#PublishDir}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#PublishDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Registry]
; Registration scheme follows the app-registration model (App Paths + Applications
; keys plus per-family ProgIds), with all display names and icons referenced as
; indirect strings into scwpic.exe itself (string table 1000-1028, icons 101-105),
; so the registry values stay language-neutral and Explorer resolves them per
; user UI language. Adding a new file family: copy a family block below, adjust
; the ProgId, string ID, icon ID and extension list, then add the extensions to
; SupportedTypes. String/icon IDs must exist in the Windows RC resources
; (dist/sarasacw-picture.rc.in.toml and dist/winrc-icos).
; --- Application registration (always installed) ---
; App Paths: lets the shell resolve "scwpic.exe" by name and locates its DLL directory.
Root: HKA; Subkey: "Software\Microsoft\Windows\CurrentVersion\App Paths\scwpic.exe"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Microsoft\Windows\CurrentVersion\App Paths\scwpic.exe"; ValueType: string; ValueName: "Path"; ValueData: "{app}"
; Applications: makes scwpic.exe itself appear in the "Open with" lists.
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe"; ValueType: string; ValueName: "FriendlyAppName"; ValueData: "@{app}\scwpic.exe,-1000"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe"; ValueType: string; ValueName: "NoOpenWith"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-101"
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
; SupportedTypes: declares the supported types to filter the "Open with" dialog.
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".ani"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".apng"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".avif"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".bmp"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".bw"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".dds"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".exr"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".gif"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".hdr"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".icns"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".ico"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".iff"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".jfif"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".jpeg"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".jpg"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".kra"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".ora"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".pdd"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".pcx"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".pfm"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".phm"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".pic"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".png"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".psb"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".psd"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".psdt"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".pxr"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".qoi"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".ras"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".rgb"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".rgba"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".sct"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".sgi"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".sun"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".svg"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".tga"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".tif"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".tiff"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".wbmp"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".webp"; ValueData: ""
Root: HKA; Subkey: "Software\Classes\Applications\scwpic.exe\SupportedTypes"; ValueType: string; ValueName: ".xcf"; ValueData: ""
; --- File type ProgId declarations (always installed) ---
; Per family: one ProgId shared by its extensions, always registered. Default
; value and FriendlyTypeName both carry the indirect string; DefaultIcon
; references the embedded icon by resource ID (101 app, 102 bmp, 103 gif,
; 104 jpg, 105 png, 106 svg). Only the OpenWithProgids line(s) at the end of each
; family block claim the actual association and are gated by the installer
; task "associatewithfiles".
; JPEG family (string 1001, icon 104)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Jpeg"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1001"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Jpeg"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1001"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Jpeg\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-104"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Jpeg\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.jpg\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Jpeg"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.jpeg\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Jpeg"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.jfif\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Jpeg"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; GIF family (string 1002, icon 103)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Gif"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1002"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Gif"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1002"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Gif\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-103"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Gif\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.gif\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Gif"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; PNG family (string 1003, icon 105)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Png"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1003"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Png"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1003"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Png\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-105"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Png\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.png\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Png"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.apng\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Png"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; SVG (string 1004, icon 106 - vector)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Svg"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1004"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Svg"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1004"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Svg\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Svg\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.svg\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Svg"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; WebP (string 1005, icon 105 - transparency capable)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Webp"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1005"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Webp"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1005"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Webp\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-105"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Webp\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.webp\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Webp"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; AVIF (string 1006, icon 105 - transparency capable)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Avif"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1006"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Avif"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1006"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Avif\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-105"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Avif\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.avif\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Avif"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; ICO (string 1007, icon 106 - icon format)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ico"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1007"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ico"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1007"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ico\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ico\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.ico\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Ico"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; ICNS (string 1008, icon 106 - icon format)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Icns"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1008"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Icns"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1008"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Icns\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Icns\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.icns\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Icns"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Photoshop family (string 1009, icon 102 - artwork)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Psd"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1009"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Psd"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1009"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Psd\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-102"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Psd\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.psd\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Psd"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.psb\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Psd"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.pdd\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Psd"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.psdt\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Psd"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Krita (string 1010, icon 102 - artwork)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Kra"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1010"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Kra"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1010"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Kra\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-102"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Kra\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.kra\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Kra"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; GIMP XCF (string 1011, icon 102 - artwork)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Xcf"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1011"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Xcf"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1011"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Xcf\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-102"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Xcf\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.xcf\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Xcf"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; TARGA (string 1012, icon 106 - archaic)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Tga"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1012"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Tga"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1012"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Tga\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Tga\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.tga\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Tga"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; TIFF family (string 1013, icon 104 - photo)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Tif"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1013"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Tif"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1013"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Tif\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-104"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Tif\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.tif\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Tif"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.tiff\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Tif"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; BMP (string 1014, icon 102)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Bmp"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1014"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Bmp"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1014"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Bmp\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-102"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Bmp\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.bmp\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Bmp"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Wireless BMP (string 1015, icon 102)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Wbmp"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1015"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Wbmp"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1015"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Wbmp\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-102"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Wbmp\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.wbmp\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Wbmp"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; DirectDraw Surface (string 1016, icon 102 - artwork)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Dds"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1016"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Dds"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1016"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Dds\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-102"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Dds\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.dds\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Dds"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; HDR family incl. EXR (string 1017, icon 104 - photo)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Hdr"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1017"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Hdr"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1017"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Hdr\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-104"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Hdr\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.hdr\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Hdr"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.exr\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Hdr"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; IFF (string 1018, icon 106 - archaic)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Iff"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1018"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Iff"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1018"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Iff\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Iff\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.iff\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Iff"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Softimage PIC (string 1019, icon 106 - archaic)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pic"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1019"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pic"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1019"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pic\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pic\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.pic\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Pic"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; PCX (string 1020, icon 106 - archaic)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pcx"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1020"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pcx"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1020"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pcx\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pcx\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.pcx\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Pcx"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; QOI (string 1021, icon 105 - transparency capable)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Qoi"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1021"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Qoi"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1021"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Qoi\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-105"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Qoi\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.qoi\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Qoi"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Sun Raster family (string 1022, icon 106 - archaic)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ras"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1022"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ras"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1022"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ras\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ras\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.ras\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Ras"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.sun\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Ras"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; OpenRaster (string 1023, icon 102 - artwork)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ora"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1023"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ora"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1023"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ora\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-102"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ora\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.ora\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Ora"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Animated Cursor (string 1024, icon 103 - animated)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ani"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1024"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ani"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1024"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ani\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-103"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Ani\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.ani\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Ani"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Portable Float Map family (string 1025, icon 104 - photo/HDR)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pfm"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1025"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pfm"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1025"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pfm\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-104"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pfm\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.pfm\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Pfm"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.phm\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Pfm"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Silicon Graphics family (string 1026, icon 106 - archaic)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Rgb"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1026"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Rgb"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1026"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Rgb\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Rgb\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.rgb\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Rgb"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.rgba\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Rgb"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.bw\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Rgb"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
Root: HKA; Subkey: "Software\Classes\.sgi\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Rgb"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Pixar (string 1027, icon 106 - archaic)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pxr"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1027"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pxr"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1027"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pxr\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Pxr\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.pxr\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Pxr"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
; Scitex CT (string 1028, icon 106 - archaic)
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Sct"; ValueType: string; ValueName: ""; ValueData: "@{app}\scwpic.exe,-1028"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Sct"; ValueType: string; ValueName: "FriendlyTypeName"; ValueData: "@{app}\scwpic.exe,-1028"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Sct\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\scwpic.exe,-106"
Root: HKA; Subkey: "Software\Classes\SarasasChipWorkshop.Picture.Sct\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\scwpic.exe"" ""%1"""
Root: HKA; Subkey: "Software\Classes\.sct\OpenWithProgids"; ValueType: string; ValueName: "SarasasChipWorkshop.Picture.Sct"; ValueData: ""; Flags: uninsdeletevalue uninsdeletekeyifempty; Tasks: associatewithfiles
[Icons]
Name: "{group}\{cm:MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "https://github.com/SarasasChipWorkshop/sarasacw-picture"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{cm:MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent
-14
View File
@@ -1,14 +0,0 @@
version = 1
source_language = "en"
[strings.MyAppName]
msgid = "SCW Photo Viewer"
comment = "Display name of the application, used in the installer UI."
[strings.MyOther]
msgid = "Other:"
comment = "Group caption for the extra installer task options."
[strings.MyAssociateWithFiles]
msgid = "Associate %1 with its supported file types."
comment = "Installer task description. %1 is the application name."
-58
View File
@@ -1,58 +0,0 @@
# Strip the PRI split configuration from a MakePri-generated priconfig.xml.
#
# `MakePri.exe createconfig` emits a <packaging> section telling `MakePri.exe new` to
# split resource candidates into separate resource packages (resources.language-*.pri,
# resources.scale-*.pri, ...), leaving the main resources.pri with default-context
# candidates only. A monolithic MSIX package loads nothing but the resources.pri at its
# package root, so any split dimension - autoResourcePackage qualifiers (Language, Scale,
# DXFeatureLevel, ...) as well as manual resourcePackage entries - would strip its
# candidates from the shipped package, e.g. every non-default UI language would silently
# fall back to the source language.
#
# This script therefore removes the whole <packaging> element. The schema declares it
# optional, and leaving an empty one behind would make MakePri warn about a missing
# packaging mode. The file is rewritten in place as UTF-8 without BOM.
#
# Usage (the Windows CI calls it between `MakePri.exe createconfig` and `MakePri.exe new`):
# pwsh -NoProfile -ExecutionPolicy Bypass -File strip-priconfig-packaging-node.ps1 -Path priconfig.xml -Verbose
[CmdletBinding()]
param(
# Path to the priconfig.xml generated by `MakePri.exe createconfig`.
[Parameter(Mandatory = $true, Position = 0)]
[string]$Path
)
if (-not (Test-Path -LiteralPath $Path)) {
throw "priconfig file not found: $Path"
}
# priconfig.xml declares no XML namespace, so plain XPath is sufficient here.
$document = [System.Xml.XmlDocument]::new()
$document.Load($Path)
$packaging = $document.SelectSingleNode('/resources/packaging')
if ($null -eq $packaging) {
Write-Verbose "No <packaging> element found; the config already yields a single monolithic PRI."
} else {
# Report every split directive we are about to drop, for build log auditing.
foreach ($node in @($packaging.SelectNodes('autoResourcePackage | resourcePackage'))) {
$name = $node.GetAttribute('qualifier')
if (-not $name) { $name = $node.GetAttribute('name') }
Write-Verbose "Dropping split directive <$($node.Name)> '$name'."
}
[void]$packaging.ParentNode.RemoveChild($packaging)
}
# Rewrite in place: UTF-8 without BOM (XmlDocument.Save(string) would emit one) and tab
# indentation, matching what createconfig itself emits.
$settings = [System.Xml.XmlWriterSettings]::new()
$settings.Indent = $true
$settings.IndentChars = "`t"
$settings.Encoding = [System.Text.UTF8Encoding]::new($false)
$writer = [System.Xml.XmlWriter]::Create($Path, $settings)
try {
$document.Save($writer)
} finally {
$writer.Close()
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Loaded 100 of 294 files, more files were not shown because too many files have changed in this diff. Show more