* Restore settings and options * Clean code and windows.yml * Gui improvment * Fixed wrong value maxicam * Change GUI TRC and Log encoding and sigmoid * Clean code locallabtools2 * Fomat locallabtools2 * New calcualtion gray when using Q * Improve sigmoid Q with meanQ * Change labels and tooltip * Change DR with log * Change location GUI TRC * Change GUI sigmoid hide - show * Fixed bug with trc * Added whites to TRC & whites * Small modification whites - comment code * Change GUI and selection for sigmoid and log encoding Q * Change yml worksflow * Added cat to workingtrc rtthumbnail * Delete entries in defualt languages * Blacks and whites distribution * Change tooltips * Fixed some issues * Change GUI hide to set_sensitive * first step white and black log encoding * GUI Labels - tooltips * Compress brightness log encoding * Change compression threshold * Clean procparams * Improve GUI and threshold compression * Improvment GUI and tooltips * First step primaries cam16 * Primaries loc step 2 * Primaries loc step 3 * jdcmax primaries - format iplab2rgb * Improve GUI * Beta RGB primaries and message * Change tooltips * Change order prim * CIExy diagram step 1 * CIExy step 2 * CIExy step 2 * CIExy diagram step 4 * CIExy diagram step 5 * Change improccordinator and locallabtool2s listener * Forgoten delete in improccordinator * Disable setListener * Improve GUI and behavior TRC and Primaries * TRC primaries - illuminant step 1 * TRC primaries - illuminant step 2 * TRC primaries - illuminant step 3 * TRC primaries - illuminant step 4 * Gamut control - remove old listener and added listener locallabcieLC * publish pre dev labels windows appimage * publish pre dev labels windows appimage [] * Move log encoding cie - step 1 * Step 2 * Move Log encoding CIE and improve GUI step 3 * Pre Ciecam midtones step 1 * Mid tones step 2 and tooltips * Forgoten label and tooltips * Improve tooltips - and change yml files * Include repository in appimage and windows.yml - change labels * Forgotten surroundcie in procparams.cc * Improve GUI with expander - clean code * Change tooltip * Clean locallabtools2 - improve Jpro * Bypass Ciecam step 1 * step 2 * Step 3 * Change settings - improve GUI * Clean code * Improve sigmoid cam16 * Improve sigmoid cam16 * Added illuminant E to illmethod * Change iccmatrices * Working profile JDCmax stdA and Abstract Profile * Pre-ciecam JDCmax stdA * Abstract profile - cat method step 1 * Step 3 * Step 4 and various changes * Enable default gamutcontrol - improve GUI * Refine color pre-ciecam * Step 2 * step 3 * Step - 4 * Refine colors Abstract profiles * Expander true Abstract Profile * Clean and comment code * Tooltip pre-ciecam * Change tooltips * Improve GUI free primaries * Labgrid dominant color * Shift dominant color step 1 * Shift xy dominant color * History msg shift * Fixed various bad behavior - change scalrefi * Improve behavior DR vs deltaE - log encoding and pre-ciecam * Limited reduce deltaE to 1 - comment code * Improve behavior TIF/JPG * Forgotten code * Various small changes to refinement color pre-ciecam * Foramt iplab2rgb and simpleprocees - small change meanx meany * Bad behavior with simpleprocess abstract profile and pre-ciecam * Re-enable code for simpleprocess * Iprove iplab2rgb * Improve GUI if selection Jz * provis with precision * Chnage GUI log encoding basic - improve shiftxl shiftyl pre-ciecam * Improve GUI with expanders * Change location pre-ciecam expander * Change label tooltip pre-ciecam * Improve white distribution and equalizer * Bad behavior Source data adjustments * Comment code * Improve Dynamic Range Compression - for some images with very high DR * Clean code * Improve TM fattal with saturation control in LA * saturation control fattal LA * RE-order paramsedit * Change local contrast in LA - log encoding and Cam16 * LA settings avoidcolorshift XYZabsolute * Change GUI precision blackEv WhiteEv BlackEvjz WhiteEvjz * Check button smoothcie - smooth highlights * Change order midtones - log encoding - other method smooth * Change maximum gamma in TRC cam16 * Change maximum slope in TRC cam16 * refine smooth highlights * Small improvment - comment code * Bad behavior - black screen - in Cam16 * setLogscale for slopjcie * Change source data GUI - PQ and other DR functions * PQ mode advanced - adjustments and tooltip * Comment and clean code * Simplified GUI in Basic mode - Source Data Adjustments * Added primaries to source date adjustements - fix basic problem * GUI graduaded filter cie cam16 * Graduated filter - LA Color appearance * More illuminant cam16 - D120 - Tungsten 2000K - Tungsten 1500K * Abstract profile ICM - shift x - shift y * Frame color dominant Abstract profile * Frame color dominant Abstract profile * Illuminant E - abstract profile * Abstact profile - midtones * Abstrcat profile - smooth highlights checkbutton * Abstract Profile - Smooth highligts rtengine * Bad behavior LA gamut - re-enabled Munsell in settings * adapts Abstract profile and auto-match tone curve * Change chromaticity curve c(h) - ppversion 351 and procparams * icmpanel fixed bad wmidtcie * Change in procparams assignfromkeyfile color Management * Remove message in console * Missing code procparams.cc wcat * Clean message in console * Disable ppversion 351 - surround extremely dark * Choice surround scene Disable ciecam * Improve GUI for surround Disable Ciecam * Small change gamutcontrol - message g0..g5 verbose * Remove gautcontrol on limits * Strength log encoding - Source data adjustments * Fixed genral bug in lacam16n - bad behavior color * Checkbutton saturation control - Cam16 log encoding * Change default saturation controle log encoding - false * GUI LA Log encoding - Strength - saturation control - part 1 * Checkbox saturation control LA Log encoding * Change repartition GUI brightnees - hue - chroma * Hide primaries and illuminant in standard mode * Merge with dev 2 * reduces sigmoid Q contrast * Provisory disable Sigmoid Q * Re-enable sigmoid function complexity mode * Re-enable log encoding Q - with Ciecam * GUI improvments - small code improvments * Change tooltip * Simplify GUI mode Basic - Standard - added tooltip * Change tooltip - LA settings - Avoid color shift * hope to fix the bug between Jz and Cam16 * Another change for Jz - format astyle locallabtool2.cc * Clean code GUI - remove Zcam * Change label in Recovery based on luminance mask * Reduces minimum spot size from 2 to 1.5 * Improve behavior GUI with Jzczhz * Clean code iplocallab.cc * Small improvement ciecam02.cc * Fixed bad behvior GUI and code between Cam16 and Jzczhz * Improve Jz and surround effects * Improve Jz and Local contrast Cam16 & Jz taking account surround * Disable local contrast if cam16 and not ciecam surround * Restore epsil 0.001 loccont * Improve local contrast when surround low and Jz * Clean code locallabtool2 - weakened a little Local Contrast in connection with surround * Remove Laplacian threshold in Cam16 and JzCzHz mask * Simplify Mask for JzCzHz * Enable choice complexity mask in mode advanced * Solved bad behavior GUI masks * Optimize GUI mask Jz and cam16 * Change 3 icon .png without png * Remove wrong message in console without problem * Remove warning with & in some tooltips and TP_WBALANCE_AUTO_HEADER * Smoothcie Method GUI * Replace checkbutton smooth highlight bya combobox * Improve behavior GUI - CIECAM - advanced - tempout and greenout * Fixed - I hope - crash when delete spot and cam16 * Clean code with maxcam and dependencies * Added Smooth highlight rolloff or not * Improve smooth lights - gamma mode only - standard and advanced - gray balance * Improve Smoothing lights - take into account the 2 Yb * Change tooltip * Chnage wrong lable scope => slope * Clean and comment code * Reduces the effect of - Smoothing light -Ev mode - Small change range Slope * Scale Yb scene white whiteEv * Hide Scale in some GUI cases * Clean comment code Smotth and TM function * Change GUI - Smooth highlights and tone mapping - allows also Basic * Change labels * Change tooltip * Remove arrow.cur in windows.yml as suggested by Lawrence37 * Reverse last changes * Change limits slope based in SDA * Clean locallabtools2.cc * Set minimum slope based to 0.6 * Change label highlight * Change listener scene parameters to GUI * Clean code sine changes listener * Limits Blackev Whiteev values in slope base to avoid crash * Change a little limits BlackEv WhiteEv * Small changes in console - remove warnings * Change XYZ relative - avoid color shift * Improve gamutmap * re build gamutmap
279 lines
9.9 KiB
YAML
279 lines
9.9 KiB
YAML
name: Windows Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- releases
|
|
- 'release-[0-9]+.*'
|
|
tags:
|
|
- '[0-9]+.*'
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
- releases
|
|
- 'release-[0-9]+.*'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
publish_pre_dev_labels: '["Beep6581:lacam16n2"]'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
build_type: [release, debug]
|
|
steps:
|
|
- name: Checkout source
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
location: C:\msys2
|
|
update: true
|
|
msystem: MINGW64
|
|
install: |
|
|
git
|
|
intltool
|
|
pacboy: |
|
|
cc:p
|
|
pkgconf:p
|
|
cmake:p
|
|
ninja:p
|
|
gtkmm3:p
|
|
lcms2:p
|
|
fftw:p
|
|
lensfun:p
|
|
libiptcdata:p
|
|
exiv2:p
|
|
|
|
- name: Configure build
|
|
run: |
|
|
export REF_NAME_FILTERED="$(echo '${{github.ref_name}}' | sed 's/[^A-z0-9_.-]//g')"
|
|
|
|
if [ '${{github.ref_type}}' == 'tag' ]; then
|
|
export CACHE_SUFFIX=""
|
|
else
|
|
echo "Setting cache suffix."
|
|
export CACHE_SUFFIX="5-$REF_NAME_FILTERED"
|
|
echo "Cache suffix is '$CACHE_SUFFIX'."
|
|
fi
|
|
|
|
echo "Running CMake configure."
|
|
cmake \
|
|
-G "Ninja" \
|
|
-DCMAKE_BUILD_TYPE='${{matrix.build_type}}' \
|
|
-DCACHE_NAME_SUFFIX="$CACHE_SUFFIX" \
|
|
-DPROC_TARGET_NUMBER="1" \
|
|
-DLENSFUNDBDIR="share/lensfun" \
|
|
-S . -B build
|
|
|
|
echo "Recording filtered ref name."
|
|
echo "REF_NAME_FILTERED=$REF_NAME_FILTERED" >> "$(cygpath -u $GITHUB_ENV)"
|
|
|
|
- name: Build RawTherapee
|
|
run: |
|
|
echo "Running CMake install."
|
|
cmake --build build --target install
|
|
|
|
- name: Include Lensfun
|
|
run: |
|
|
echo "Updating Lensfun database."
|
|
lensfun-update-data
|
|
echo "Creating Lensfun directory in the build directory."
|
|
mkdir -p 'build/${{matrix.build_type}}/share'
|
|
echo "Copying Lensfun database to the build directory."
|
|
cp -R "/C/msys2/msys64/mingw64/var/lib/lensfun-updates/version_1" 'build/${{matrix.build_type}}/share/lensfun'
|
|
|
|
- name: Bundle dependencies
|
|
run: |
|
|
echo "Listing shared library dependencies."
|
|
ldd "./build/${{matrix.build_type}}/rawtherapee.exe"
|
|
echo "Finding DLLs to include."
|
|
DLLS=($(ldd "./build/${{matrix.build_type}}/rawtherapee.exe" | grep '/mingw64/bin/' | awk '{print($1)'}))
|
|
echo "Required DLLs are: ${DLLS[*]}"
|
|
|
|
echo "Getting workspace path."
|
|
export BUILD_DIR="$(pwd)/build/${{matrix.build_type}}"
|
|
echo "Build directory is '$BUILD_DIR'."
|
|
echo "Changing working directory to MSYS2 MINGW64."
|
|
cd "/C/msys2/msys64/mingw64"
|
|
echo "Copying DLLs and EXEs."
|
|
|
|
cd ./bin
|
|
cp \
|
|
"gdbus.exe" \
|
|
"gspawn-win64-helper.exe" \
|
|
"gspawn-win64-helper-console.exe" \
|
|
${DLLS[*]} \
|
|
"$BUILD_DIR"
|
|
cd -
|
|
|
|
echo "Copying Adwaita theme."
|
|
mkdir -p "$BUILD_DIR/share/icons/Adwaita"
|
|
cd 'share/icons/Adwaita/'
|
|
mkdir -p "$BUILD_DIR/share/icons/Adwaita/symbolic"
|
|
cp -r \
|
|
"symbolic/actions" \
|
|
"symbolic/devices" \
|
|
"symbolic/mimetypes" \
|
|
"symbolic/places" \
|
|
"symbolic/status" \
|
|
"symbolic/ui" \
|
|
"$BUILD_DIR/share/icons/Adwaita/symbolic"
|
|
cp 'index.theme' "$BUILD_DIR/share/icons/Adwaita"
|
|
cd -
|
|
|
|
echo "Copying GDK pixbuf."
|
|
mkdir -p "$BUILD_DIR/lib"
|
|
cp -r 'lib/gdk-pixbuf-2.0' "$BUILD_DIR/lib/gdk-pixbuf-2.0"
|
|
|
|
echo "Copying GLib schemas."
|
|
mkdir -p "$BUILD_DIR/share/glib-2.0/schemas"
|
|
cp 'share/glib-2.0/schemas/gschemas.compiled' "$BUILD_DIR/share/glib-2.0/schemas"
|
|
|
|
echo "Creating GTK settings.ini."
|
|
mkdir -p "$BUILD_DIR/share/gtk-3.0/"
|
|
echo -e '[Settings]\ngtk-button-images=1' > "$BUILD_DIR/share/gtk-3.0/settings.ini"
|
|
|
|
- name: Create installer
|
|
if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}}
|
|
working-directory: build/${{matrix.build_type}}
|
|
shell: pwsh
|
|
run: |
|
|
echo "Installing Inno Setup."
|
|
choco install innosetup
|
|
echo "Setup file:"
|
|
type "WindowsInnoSetup.iss"
|
|
echo "Creating installer from script."
|
|
iscc /F"installer" "WindowsInnoSetup.iss"
|
|
|
|
- name: Prepare artifact name
|
|
run: |
|
|
if [ '${{github.ref_type}}' == 'tag' ]; then
|
|
ARTIFACT_NAME="RawTherapee_${REF_NAME_FILTERED}_win64_${{matrix.build_type}}"
|
|
else
|
|
echo "Getting RawTherapee version."
|
|
export VERSION="$(grep -m 1 '^Version: .*$' './build/${{matrix.build_type}}/AboutThisBuild.txt' | sed 's/^Version: \(.\+\)$/\1/')"
|
|
echo "Version is '$VERSION'."
|
|
FILTERED_VERSION="$(echo "$VERSION" | sed 's/[^A-z0-9_.-]//g')"
|
|
ARTIFACT_NAME="RawTherapee_${REF_NAME_FILTERED}_${FILTERED_VERSION}_win64_${{matrix.build_type}}"
|
|
fi
|
|
echo "Artifact name is '$ARTIFACT_NAME'."
|
|
|
|
echo "Recording artifact name."
|
|
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> "$(cygpath -u $GITHUB_ENV)"
|
|
echo "Recording RawTherapee version."
|
|
echo "RT_VERSION=$VERSION" >> "$(cygpath -u $GITHUB_ENV)"
|
|
|
|
echo "Renaming artifact."
|
|
mv './build/${{matrix.build_type}}' "./build/$ARTIFACT_NAME"
|
|
if [ -e './build/installer.exe' ]; then
|
|
echo "Renaming installer."
|
|
mv './build/installer.exe' "./build/$ARTIFACT_NAME.exe"
|
|
fi
|
|
|
|
- name: Create ZIP archive
|
|
shell: cmd
|
|
working-directory: ./build
|
|
run: |
|
|
echo "Zipping artifact."
|
|
7z a -tzip "%ARTIFACT_NAME%.zip" "./%ARTIFACT_NAME%"
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{env.ARTIFACT_NAME}}
|
|
path: build\${{env.ARTIFACT_NAME}}
|
|
|
|
- name: Upload installer
|
|
if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{env.ARTIFACT_NAME}}.exe
|
|
path: build\${{env.ARTIFACT_NAME}}.exe
|
|
|
|
- name: Prepare for publishing
|
|
if: ${{github.ref_type == 'tag' || github.ref_name == 'dev'}}
|
|
run: |
|
|
echo "Setting publish name."
|
|
PUBLISH_NAME="RawTherapee_${REF_NAME_FILTERED}_win64_${{matrix.build_type}}"
|
|
echo "Publish name is '$PUBLISH_NAME'."
|
|
if [ "$ARTIFACT_NAME" != "$PUBLISH_NAME" ]; then
|
|
echo "Renaming ZIP file."
|
|
cp "build/$ARTIFACT_NAME.zip" "build/$PUBLISH_NAME.zip"
|
|
if [ -e "./build/$ARTIFACT_NAME.exe" ]; then
|
|
echo "Renaming installer."
|
|
mv "./build/$ARTIFACT_NAME.exe" "./build/$PUBLISH_NAME.exe"
|
|
fi
|
|
fi
|
|
echo "Creating version file."
|
|
cp "build/$ARTIFACT_NAME/AboutThisBuild.txt" "build/$PUBLISH_NAME-AboutThisBuild.txt"
|
|
|
|
echo "Recording publish name."
|
|
echo "PUBLISH_NAME=$PUBLISH_NAME" >> "$(cygpath -u $GITHUB_ENV)"
|
|
|
|
- name: Publish artifacts
|
|
uses: softprops/action-gh-release@v1
|
|
if: ${{github.ref_type == 'tag' || github.ref_name == 'dev'}}
|
|
with:
|
|
tag_name: nightly-github-actions
|
|
files: |
|
|
build/${{env.PUBLISH_NAME}}.zip
|
|
build/${{env.PUBLISH_NAME}}-AboutThisBuild.txt
|
|
|
|
- name: Publish installer
|
|
uses: softprops/action-gh-release@v1
|
|
if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}}
|
|
with:
|
|
tag_name: nightly-github-actions
|
|
files: build/${{env.PUBLISH_NAME}}.exe
|
|
|
|
- name: Prepare for publishing pre-dev
|
|
id: prepare-publish-pre-dev
|
|
if: ${{github.event_name == 'pull_request' && contains(fromJSON(env.publish_pre_dev_labels), github.event.pull_request.head.label)}}
|
|
run: |
|
|
echo "Making ref name."
|
|
REF_NAME_FILTERED="$(echo '${{github.event.pull_request.head.label}}' | tr ':' '_' | sed 's/[^A-z0-9_.-]//g')"
|
|
echo "Ref name is '$REF_NAME_FILTERED'."
|
|
|
|
echo "Setting publish name."
|
|
PUBLISH_NAME="RawTherapee_${REF_NAME_FILTERED}_win64_${{matrix.build_type}}"
|
|
echo "Publish name is '$PUBLISH_NAME'."
|
|
if [ "$ARTIFACT_NAME" != "$PUBLISH_NAME" ]; then
|
|
echo "Renaming ZIP file."
|
|
cp "build/$ARTIFACT_NAME.zip" "build/$PUBLISH_NAME.zip"
|
|
if [ -e "./build/$ARTIFACT_NAME.exe" ]; then
|
|
echo "Renaming installer."
|
|
mv "./build/$ARTIFACT_NAME.exe" "./build/$PUBLISH_NAME.exe"
|
|
fi
|
|
fi
|
|
echo "Creating version file."
|
|
cp "build/$ARTIFACT_NAME/AboutThisBuild.txt" "build/$PUBLISH_NAME-AboutThisBuild.txt"
|
|
|
|
echo "Recording publish name."
|
|
echo "PUBLISH_NAME=$PUBLISH_NAME" >> "$(cygpath -u $GITHUB_ENV)"
|
|
|
|
- name: Publish pre-dev artifacts
|
|
uses: softprops/action-gh-release@v1
|
|
if: ${{steps.prepare-publish-pre-dev.outcome == 'success'}}
|
|
with:
|
|
tag_name: pre-dev-github-actions
|
|
files: |
|
|
build/${{env.PUBLISH_NAME}}.zip
|
|
build/${{env.PUBLISH_NAME}}-AboutThisBuild.txt
|
|
|
|
- name: Publish pre-dev installer
|
|
uses: softprops/action-gh-release@v1
|
|
if: ${{steps.prepare-publish-pre-dev.outcome == 'success' && matrix.build_type == 'release'}}
|
|
with:
|
|
tag_name: pre-dev-github-actions
|
|
files: build/${{env.PUBLISH_NAME}}.exe
|