Skip to content

The swiss army knife of lossless video/audio editing

14.3 KB
Raw Blame
{
  "name": "lossless-cut",
  "productName": "LosslessCut",
  "desktopName": "losslesscut.desktop",
  "description": "The swiss army knife of lossless video/audio editing",
  "copyright": "Copyright © 2026 ${author}",
  "version": "3.70.2",
  "main": "./out/main/index.js",
  "homepage": "./",
  "type": "module",
  "scripts": {
    "clean": "rimraf dist out common-ts-dist main-ts-dist preload-ts-dist build-resources icon-build",
    "start": "electron-vite preview",
    "dev": "electron-vite dev -w",
    "download-ffmpeg-darwin-x64": "node script/downloadFfmpeg.ts darwin-x64",
    "download-ffmpeg-darwin-arm64": "node script/downloadFfmpeg.ts darwin-arm64",
    "download-ffmpeg-linux-x64": "node script/downloadFfmpeg.ts linux-x64",
    "download-ffmpeg-linux-arm64": "node script/downloadFfmpeg.ts linux-arm64",
    "download-ffmpeg-win32-x64": "node script/downloadFfmpeg.ts win32-x64",
    "download-ffmpeg-win32-arm64": "node script/downloadFfmpeg.ts win32-arm64",
    "build": "yarn generate-icon && electron-vite build",
    "tsc": "tsc --build",
    "test": "vitest",
    "lint": "oxlint --type-aware --deny-warnings --ignore-pattern 'website/**' && oxlint --deny-warnings website",
    "check": "yarn tsc && yarn lint && yarn test run && yarn build && yarn check-licenses && yarn scan-i18n && yarn dedupe --check && yarn generate-docs",
    "pack-mac": "yarn build && electron-builder --mac dmg",
    "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.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.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.ts",
    "release-notes": "node script/releaseNotes.ts",
    "check-licenses": "node script/checkLicenses.ts",
    "upload-artifacts": "node script/uploadArtifacts.ts"
  },
  "author": {
    "name": "Mikael Finstad",
    "email": "[email protected]",
    "url": "https://mifi.no/"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/mifi/lossless-cut.git"
  },
  "license": "GPL-2.0-only",
  "devDependencies": {
    "@actions/artifact": "^6.2.1",
    "@adamscybot/react-leaflet-component-marker": "^2.0.3",
    "@dnd-kit/core": "^6.3.1",
    "@dnd-kit/modifiers": "^9.0.0",
    "@dnd-kit/sortable": "^10.0.0",
    "@fontsource/open-sans": "^5.2.7",
    "@mifi/lint-config": "^1.1.0",
    "@radix-ui/colors": "^3.0.0",
    "@radix-ui/react-alert-dialog": "^1.1.15",
    "@radix-ui/react-checkbox": "^1.3.3",
    "@radix-ui/react-dialog": "^1.1.15",
    "@radix-ui/react-dropdown-menu": "^2.1.16",
    "@radix-ui/react-switch": "^1.2.6",
    "@radix-ui/themes": "^3.3.0",
    "@tanstack/react-virtual": "3.13.26",
    "@tsconfig/node22": "^22.0.5",
    "@tsconfig/strictest": "^2.0.8",
    "@tsconfig/vite-react": "^8.0.6",
    "@types/canvas-confetti": "^1.9.0",
    "@types/color": "^4.2.1",
    "@types/css-modules": "^1.0.5",
    "@types/express": "^5.0.6",
    "@types/leaflet": "^1.9.21",
    "@types/lodash": "^4.17.24",
    "@types/luxon": "^3.7.1",
    "@types/mime-types": "^3.0.1",
    "@types/morgan": "^1.9.10",
    "@types/node": "22.19.19",
    "@types/react": "^19.2.15",
    "@types/react-dom": "^19.2.3",
    "@types/react-syntax-highlighter": "^15.5.13",
    "@types/semver": "^7.7.1",
    "@types/smpte-timecode": "^1.2.5",
    "@types/yargs": "^17.0.35",
    "@types/yargs-parser": "^21.0.3",
    "@uidotdev/usehooks": "^2.4.1",
    "@vitejs/plugin-react": "^5.2.0",
    "canvas-confetti": "^1.9.4",
    "color": "^5.0.3",
    "csv-parse": "^7.0.2",
    "csv-stringify": "^6.7.0",
    "data-uri-to-buffer": "^8.0.0",
    "electron": "^45.0.0",
    "electron-builder": "26.16.1",
    "electron-vite": "^5.0.0",
    "fast-xml-parser": "^5.8.0",
    "i18next-cli": "^1.58.1",
    "immer": "^11.1.8",
    "ky": "^2.0.2",
    "leaflet": "^1.9.4",
    "lodash": "^4.18.1",
    "luxon": "^3.7.2",
    "mkdirp": "^3.0.1",
    "motion": "^12.40.0",
    "nanoid": "^5.1.11",
    "oxlint": "^1.89.0",
    "oxlint-tsgolint": "^7.0.2005",
    "p-map": "^7.0.4",
    "p-retry": "^8.0.0",
    "pretty-bytes": "^7.1.0",
    "react": "^19.2.6",
    "react-dom": "^19.2.6",
    "react-i18next": "^17.0.8",
    "react-icons": "^5.6.0",
    "react-leaflet": "^5.0.0",
    "react-lottie-player": "^2.1.0",
    "react-markdown": "^10.1.0",
    "react-syntax-highlighter": "^16.1.1",
    "react-use": "^17.6.0",
    "sass": "^1.100.0",
    "screenfull": "^6.0.2",
    "sharp": "^0.35.5",
    "smpte-timecode": "^1.3.6",
    "sweetalert2": "^11.26.17",
    "sweetalert2-react-content": "^5.1.1",
    "tiny-invariant": "^1.3.3",
    "ts-morph": "^28.0.0",
    "type-fest": "^5.7.0",
    "typescript": "~6.0.3",
    "use-debounce": "^10.1.1",
    "use-trace-update": "^1.3.3",
    "vite": "7.3.7",
    "vitest": "^4.1.11",
    "yargs": "^18.0.0"
  },
  "dependencies": {
    "@electron/remote": "^2.1.3",
    "cue-parser": "^0.3.0",
    "electron-devtools-installer": "^4.0.0",
    "electron-store": "5.1.1",
    "electron-unhandled": "^5.0.0",
    "execa": "^9.6.1",
    "express": "^5.2.1",
    "file-type": "^22.0.1",
    "i18next": "^26.3.0",
    "i18next-fs-backend": "^2.6.6",
    "json5": "^2.2.3",
    "mime-types": "^3.0.2",
    "mitt": "patch:mitt@npm%3A3.0.1#~/.yarn/patches/mitt-npm-3.0.1-ce290ffa77.patch",
    "morgan": "^1.12.1",
    "semver": "^7.8.1",
    "string-to-stream": "^3.0.1",
    "winston": "^3.19.0",
    "yargs-parser": "^22.0.0",
    "zod": "^4.6.6"
  },
  "build": {
    "toolsets": {
      "appimage": "1.0.3"
    },
    "directories": {
      "buildResources": "build-resources"
    },
    "files": [
      "out/**/*"
    ],
    "asar": {
      "smartUnpack": false
    },
    "electronFuses": {
      "runAsNode": false,
      "enableNodeOptionsEnvironmentVariable": false,
      "enableNodeCliInspectArguments": false,
      "enableEmbeddedAsarIntegrityValidation": true,
      "onlyLoadAppFromAsar": true
    },
    "appId": "no.mifi.losslesscut",
    "afterPack": "./script/afterPack.ts",
    "artifactName": "${productName}-${os}-${arch}.${ext}",
    "extraResources": [
      {
        "from": "locales",
        "to": "locales"
      }
    ],
    "mac": {
      "hardenedRuntime": true,
      "notarize": true,
      "appId": "no.mifi.losslesscut-mac",
      "category": "public.app-category.productivity",
      "target": [
        {
          "target": "mas",
          "arch": "universal"
        },
        {
          "target": "dmg",
          "arch": [
            "x64",
            "arm64"
          ]
        }
      ],
      "electronLanguages": [
        "en"
      ],
      "extraResources": [
        {
          "from": "ffmpeg/darwin-${arch}",
          "to": "."
        }
      ],
      "icon": "icon-build/app.icns",
      "fileAssociations": [
        {
          "ext": [
            "webm",
            "mkv",
            "flv",
            "vob",
            "ogv",
            "drc",
            "gif",
            "gifv",
            "mng",
            "avi",
            "mts",
            "m2ts",
            "ts",
            "mov",
            "qt",
            "wmv",
            "yuv",
            "rm",
            "rmvb",
            "asf",
            "amv",
            "mp4",
            "m4v",
            "mpg",
            "mp2",
            "mpeg",
            "mpe",
            "mpv",
            "m2v",
            "svi",
            "3gp",
            "3g2",
            "mxf",
            "roq",
            "nsv",
            "f4v",
            "f4p",
            "f4a",
            "f4b"
          ],
          "name": "Video",
          "description": "Video files",
          "role": "Viewer"
        },
        {
          "ext": [
            "aa",
            "aac",
            "aax",
            "act",
            "aiff",
            "alac",
            "amr",
            "ape",
            "au",
            "awb",
            "dct",
            "dss",
            "dvf",
            "flac",
            "gsm",
            "iklax",
            "ivs",
            "m4a",
            "m4b",
            "m4p",
            "mmf",
            "mp3",
            "mpc",
            "msv",
            "nmf",
            "nsf",
            "ogg",
            "oga",
            "mogg",
            "opus",
            "ra",
            "rf64",
            "sln",
            "tta",
            "voc",
            "vox",
            "wav",
            "wma",
            "wv",
            "8svx",
            "cda"
          ],
          "name": "Audio",
          "description": "Audio files",
          "role": "Viewer"
        },
        {
          "ext": [
            "llc"
          ],
          "name": "LosslessCut project",
          "description": "LosslessCut project",
          "role": "Editor"
        }
      ],
      "extendInfo": {
        "ITSAppUsesNonExemptEncryption": false,
        "UTExportedTypeDeclarations": [
          {
            "UTTypeIdentifier": "no.mifi.losslesscut.project",
            "UTTypeDescription": "LosslessCut project",
            "UTTypeConformsTo": [
              "public.plain-text"
            ],
            "UTTypeTagSpecification": {
              "public.filename-extension": [
                "llc"
              ]
            }
          }
        ]
      }
    },
    "mas": {
      "artifactName": "${productName}-${os}-${arch}-DONT-USE-THIS-FILE.${ext}",
      "hardenedRuntime": false,
      "notarize": false,
      "entitlements": "entitlements.mas.plist",
      "entitlementsInherit": "entitlements.mas.inherit.plist",
      "provisioningProfile": "LosslessCut_Mac_App_Store_provisioning_profile.provisionprofile",
      "binaries": [
        "Contents/Resources/ffmpeg",
        "Contents/Resources/ffprobe"
      ]
    },
    "win": {
      "target": [
        "7z",
        "appx"
      ],
      "extraResources": [
        {
          "from": "ffmpeg/win32-${arch}/lib",
          "to": "."
        }
      ],
      "icon": "icon-build/app.ico",
      "fileAssociations": [
        {
          "ext": [
            "webm",
            "mkv",
            "flv",
            "vob",
            "ogv",
            "drc",
            "gif",
            "gifv",
            "mng",
            "avi",
            "mts",
            "m2ts",
            "ts",
            "mov",
            "qt",
            "wmv",
            "yuv",
            "rm",
            "rmvb",
            "asf",
            "amv",
            "mp4",
            "m4v",
            "mpg",
            "mp2",
            "mpeg",
            "mpe",
            "mpv",
            "m2v",
            "svi",
            "3gp",
            "3g2",
            "mxf",
            "roq",
            "nsv",
            "f4v",
            "f4p",
            "f4a",
            "f4b"
          ],
          "name": "Video",
          "description": "Video files",
          "role": "Viewer"
        },
        {
          "ext": [
            "aa",
            "aac",
            "aax",
            "act",
            "aiff",
            "alac",
            "amr",
            "ape",
            "au",
            "awb",
            "dct",
            "dss",
            "dvf",
            "flac",
            "gsm",
            "iklax",
            "ivs",
            "m4a",
            "m4b",
            "m4p",
            "mmf",
            "mp3",
            "mpc",
            "msv",
            "nmf",
            "nsf",
            "ogg",
            "oga",
            "mogg",
            "opus",
            "ra",
            "rf64",
            "sln",
            "tta",
            "voc",
            "vox",
            "wav",
            "wma",
            "wv",
            "8svx",
            "cda"
          ],
          "name": "Audio",
          "description": "Audio files",
          "role": "Viewer"
        },
        {
          "ext": [
            "llc"
          ],
          "name": "LosslessCut project",
          "description": "LosslessCut project",
          "role": "Editor"
        }
      ]
    },
    "appx": {
      "artifactName": "${productName}-${os}-${arch}-DONT-USE-THIS-FILE.${ext}",
      "applicationId": "LosslessCut",
      "identityName": "57275mifi.no.LosslessCut",
      "publisher": "CN=2C479316-22A8-4D63-BC38-F0FB9AB0B974",
      "publisherDisplayName": "mifi.no"
    },
    "linux": {
      "executableName": "losslesscut",
      "extraResources": [
        {
          "from": "ffmpeg/linux-${arch}/lib",
          "to": "."
        }
      ],
      "category": "AudioVideo",
      "mimeTypes": [
        "video/mp4",
        "video/x-m4v",
        "video/quicktime",
        "video/x-matroska",
        "video/webm",
        "video/x-msvideo",
        "video/x-flv",
        "video/mpeg",
        "video/mp2t",
        "video/ogg",
        "video/3gpp",
        "video/3gpp2",
        "video/x-ms-wmv",
        "video/x-ms-asf",
        "application/mxf",
        "application/vnd.rn-realmedia",
        "audio/mpeg",
        "audio/mp4",
        "audio/x-m4a",
        "audio/aac",
        "audio/flac",
        "audio/ogg",
        "audio/x-wav",
        "audio/x-aiff",
        "audio/x-ms-wma",
        "audio/x-matroska",
        "audio/x-ape",
        "audio/x-wavpack",
        "audio/AMR",
        "audio/AMR-WB",
        "audio/x-vorbis+ogg",
        "audio/x-opus+ogg",
        "audio/x-flac+ogg",
        "video/x-theora+ogg"
      ],
      "icon": "icon-build/app-512.png",
      "target": [
        {
          "arch": "x64",
          "target": "tar.bz2"
        },
        {
          "arch": "x64",
          "target": "AppImage"
        },
        {
          "arch": "x64",
          "target": "snap"
        },
        {
          "arch": "arm64",
          "target": "tar.bz2"
        }
      ]
    },
    "snap": {
      "allowNativeWayland": false,
      "executableArgs": [
        "--ozone-platform=x11"
      ],
      "plugs": [
        "default",
        "removable-media"
      ]
    }
  },
  "packageManager": "[email protected]"
}