diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a2c8497a..099855a9 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -59,30 +59,28 @@ jobs: built-*/*.snap built-*/*.blockmap tauri-release/* - -# Commented out just for test releases -# publish-to-homebrew-cask: -# name: Publish to Homebrew Cask -# needs: -# - publish -# - release-please -# runs-on: macos-latest -# steps: -# - uses: Homebrew/actions/bump-packages@master -# with: -# casks: pomatez -# token: ${{ secrets.GITHUB_TOKEN }} -# publish-to-winget: -# name: Publish to WinGet -# needs: -# - publish -# - release-please -# runs-on: windows-latest -# steps: -# - uses: vedantmgoyal2009/winget-releaser@v2 -# with: -# identifier: Zidoro.Pomatez -# installers-regex: 'setup\.exe$' -# max-versions-to-keep: 5 # keep only latest 5 versions -# release-tag: ${{ needs.release-please.outputs.tag }} -# token: ${{ secrets.GITHUB_TOKEN }} + publish-to-homebrew-cask: + name: Publish to Homebrew Cask + needs: + - publish + - release-please + runs-on: macos-latest + steps: + - uses: Homebrew/actions/bump-packages@master + with: + casks: pomatez + token: ${{ secrets.GITHUB_TOKEN }} + publish-to-winget: + name: Publish to WinGet + needs: + - publish + - release-please + runs-on: windows-latest + steps: + - uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: Zidoro.Pomatez + installers-regex: 'setup\.exe$' + max-versions-to-keep: 5 # keep only latest 5 versions + release-tag: ${{ needs.release-please.outputs.tag }} + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6bce9c40..3408afc2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,3 +19,4 @@ repos: rev: "" # Use the sha or tag you want to point at hooks: - id: prettier + exclude: ^CHANGELOG\.md$ diff --git a/app/renderer/src/contexts/connectors/TauriConnector.tsx b/app/renderer/src/contexts/connectors/TauriConnector.tsx index 6697e273..5328b208 100644 --- a/app/renderer/src/contexts/connectors/TauriConnector.tsx +++ b/app/renderer/src/contexts/connectors/TauriConnector.tsx @@ -100,9 +100,8 @@ export const TauriConnectorProvider: React.FC = ({ children }) => { const timer = useSelector((state: AppStateTypes) => state.timer); - const { count, duration, timerType, shouldFullscreen } = useContext( - CounterContext - ); + const { count, duration, timerType, shouldFullscreen } = + useContext(CounterContext); const dashOffset = (duration - count) * (24 / duration); const onMinimizeCallback = useCallback(() => { @@ -175,7 +174,7 @@ export const TauriConnectorProvider: React.FC = ({ children }) => { const img = new Image(); img.src = svgXML; - img.onload = function() { + img.onload = function () { ctx?.drawImage(img, 0, 0); const dataUrl = canvas.toDataURL("image/png");