From 260108a32c01dff45891aafdf92a65245a7c61f1 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 8 Jan 2026 14:34:15 +0800 Subject: [PATCH] fix scripts --- .github/workflows/build.yml | 8 ++++---- CONTRIBUTING.md | 2 +- package.json | 8 ++++---- src/renderer/src/components/WhatsNew.tsx | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c395a501..8a481233 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -122,10 +122,10 @@ jobs: APPLE_API_KEY_ID: ${{ secrets.api_key_id }} APPLE_API_ISSUER: ${{ secrets.api_key_issuer_id }} - - run: node script/e2e.mts 'dist/mac-arm64/LosslessCut.app/Contents/MacOS/LosslessCut' 0:none screenshot.jpeg + - run: node script/e2e.ts 'dist/mac-arm64/LosslessCut.app/Contents/MacOS/LosslessCut' 0:none screenshot.jpeg if: startsWith(matrix.os, 'macos') - - run: node script/e2e.mts 'dist\win-unpacked\LosslessCut.exe' desktop screenshot.jpeg + - run: node script/e2e.ts 'dist\win-unpacked\LosslessCut.exe' desktop screenshot.jpeg if: startsWith(matrix.os, 'windows') - run: | @@ -133,13 +133,13 @@ jobs: sudo Xvfb -ac :0 -screen 0 1280x1024x24 > /dev/null 2>&1 & sleep 5 chmod +x dist/linux-unpacked/losslesscut - node script/e2e.mts 'dist/linux-unpacked/losslesscut' ':0.0+0,0' screenshot.jpeg + node script/e2e.ts 'dist/linux-unpacked/losslesscut' ':0.0+0,0' screenshot.jpeg if: startsWith(matrix.os, 'ubuntu') - name: (MacOS) Upload to Mac App Store if: startsWith(matrix.os, 'macos') && env.is_tag == 'true' run: | - node script/xcrunWrapper.mts dist/mas-universal/LosslessCut-mac-universal.pkg ${{ secrets.api_key_id }} ${{ secrets.api_key_issuer_id }} 1505323402 no.mifi.losslesscut-mac + node script/xcrunWrapper.ts dist/mas-universal/LosslessCut-mac-universal.pkg ${{ secrets.api_key_id }} ${{ secrets.api_key_issuer_id }} 1505323402 no.mifi.losslesscut-mac - name: (MacOS) Upload artifacts uses: actions/upload-artifact@v4 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9c069b06..d75c885b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -72,7 +72,7 @@ Before releasing, consider [Maintainence chores](#maintainence-chores) first. - `git merge stores` (in case there's an old unmerged stores hotfix) - **Prepare release notes** from commit history - Create a new file `versions/x.y.z.md` and write the most important highlights from the release notes, but **remove github issue #references** -- `node script/generateVersions.mts && git add versions/*.md src/renderer/src/versions.json && git commit -m 'Update change log'` +- `node script/generateVersions.ts && git add versions/*.md src/renderer/src/versions.json && git commit -m 'Update change log'` - *If Store-only hotfix release* - `git checkout stores` - `npm version patch` diff --git a/package.json b/package.json index 3807b6c6..7397cef7 100644 --- a/package.json +++ b/package.json @@ -23,13 +23,13 @@ "pack-mas-dev": "yarn build && electron-builder --mac mas-dev -c.mas.provisioningProfile=LosslessCut_Dev.provisionprofile -c.mas.identity='Mikael Finstad (JH4PH8B3C8)'", "pack-win": "yarn build && electron-builder --win zip --x64", "postinstall": "electron-builder install-app-deps", - "version": "node script/postversion.mts && git add no.mifi.losslesscut.appdata.xml", + "version": "node script/postversion.ts && git add no.mifi.losslesscut.appdata.xml", "pack-linux": "yarn build && electron-builder --linux", "scan-i18n": "i18next-cli -c i18next.config.scan.ts extract", - "generate-icon": "mkdirp icon-build build-resources/appx && node script/generateIcon.mts", + "generate-icon": "mkdirp icon-build build-resources/appx && node script/generateIcon.ts", "generate-licenses": "yarn licenses generate-disclaimer -R > licenses.txt && echo '\n\nffmpeg is licensed under GPL v2+:\n\nhttp://www.gnu.org/licenses/old-licenses/gpl-2.0.html' >> licenses.txt", - "generate-docs": "node script/generateDocs.mts", - "check-licenses": "node script/checkLicenses.mts" + "generate-docs": "node script/generateDocs.ts", + "check-licenses": "node script/checkLicenses.ts" }, "author": { "name": "Mikael Finstad", diff --git a/src/renderer/src/components/WhatsNew.tsx b/src/renderer/src/components/WhatsNew.tsx index 1b4157df..31a4788a 100644 --- a/src/renderer/src/components/WhatsNew.tsx +++ b/src/renderer/src/components/WhatsNew.tsx @@ -14,7 +14,7 @@ import styles from './WhatsNew.module.css'; import { compareReleasesUrl, getReleaseUrl } from '../../../common/constants'; -// see also generateVersions.mts +// see also generateVersions.ts const versions: { version: string, highlightsMd?: string | undefined }[] = versionsJson; const remote = window.require('@electron/remote');