Repositories/EigenverftModule/VSCodeRuntime.json
|
{
"$schema": "./eigenverft-module-package-definition-1.3.schema.json", "schemaVersion": "1.3", "id": "VSCodeRuntime", "display": { "default": { "name": "Visual Studio Code", "publisher": "Microsoft", "corporation": "Microsoft Corporation", "summary": "Code editor" } }, "dependencies": [], "artifacts": { "targets": [ { "id": "VSCodeRuntime-win32-x64-stable", "releaseTrack": "stable", "artifactDistributionVariant": "win32-x64", "constraints": { "os": [ "windows" ], "cpu": [ "x64" ] }, "versionSelection": { "strategy": "latestByVersion", "allowPrerelease": false }, "fileNameTemplate": "VSCode-win32-x64-{version}.zip", "acquisitionCandidates": [ { "kind": "packageDepot", "searchOrder": 100, "verification": { "mode": "optional" } }, { "kind": "download", "sourceId": "vsCodeUpdateService", "searchOrder": 900, "sourcePath": "{version}/win32-x64-archive/stable", "verification": { "mode": "required" } } ] }, { "id": "VSCodeRuntime-win32-arm64-stable", "releaseTrack": "stable", "artifactDistributionVariant": "win32-arm64", "constraints": { "os": [ "windows" ], "cpu": [ "arm64" ] }, "versionSelection": { "strategy": "latestByVersion", "allowPrerelease": false }, "fileNameTemplate": "VSCode-win32-arm64-{version}.zip", "acquisitionCandidates": [ { "kind": "packageDepot", "searchOrder": 100, "verification": { "mode": "optional" } }, { "kind": "download", "sourceId": "vsCodeUpdateService", "searchOrder": 900, "sourcePath": "{version}/win32-arm64-archive/stable", "verification": { "mode": "required" } } ] } ], "releases": [ { "version": "1.116.0", "releaseTracks": [ "stable" ], "targetArtifacts": { "VSCodeRuntime-win32-x64-stable": { "artifactId": "vsCode-win-x64-stable", "contentHash": { "algorithm": "sha256", "value": "365c3d275deb3a1c0a1aa626f274824b8db15ee150d567a7323b8dbce2cdfa8f" } }, "VSCodeRuntime-win32-arm64-stable": { "artifactId": "vsCode-win-arm64-stable", "contentHash": { "algorithm": "sha256", "value": "6712506c9541823e2c9a52aec6efcfb2f95df4247606eaa9fbade2b08df84fe7" } } } } ], "sources": { "vsCodeUpdateService": { "kind": "download", "baseUri": "https://update.code.visualstudio.com" } } }, "presenceDiscovery": { "files": [ "Code.exe", "bin/code.cmd" ], "directories": [ "data" ], "commands": [ { "name": "code", "relativePath": "bin/code.cmd", "requiredForState": true, "exposeCommand": true, "stateChecks": [ { "arguments": [ "--version" ], "outputPattern": "(?m)^(?<value>\\d+\\.\\d+\\.\\d+)\\s*$", "expectedValue": "{version}" } ] } ], "apps": [ { "name": "Code", "relativePath": "Code.exe", "requiredForState": true, "exposeApp": true } ], "metadataFiles": [], "signatures": [ { "relativePath": "Code.exe", "requireValid": true, "subjectContains": "Microsoft Corporation" } ], "fileDetails": [ { "relativePath": "Code.exe", "productName": "Visual Studio Code", "fileDescription": "Visual Studio Code" } ], "registry": [] }, "existingInstallDiscovery": { "enabled": true, "searchLocations": [ { "id": "vsCodeCommandCodeCmd", "kind": "command", "searchOrder": 100, "name": "code.cmd" }, { "id": "vsCodeCommandCode", "kind": "command", "searchOrder": 110, "name": "code" }, { "id": "vsCodeProgramFilesCodeCmd", "kind": "path", "searchOrder": 120, "path": "%ProgramFiles%/Microsoft VS Code/bin/code.cmd" }, { "id": "vsCodeLocalAppDataCodeCmd", "kind": "path", "searchOrder": 130, "path": "%LOCALAPPDATA%/Programs/Microsoft VS Code/bin/code.cmd" } ], "installRootRules": [ { "match": { "kind": "fileName", "value": "code.cmd" }, "installRootRelativePath": ".." }, { "match": { "kind": "fileName", "value": "Code.exe" }, "installRootRelativePath": "." } ] }, "packageOperations": { "policy": { "ownershipPolicy": { "allowAdoptExternal": true, "upgradeAdoptedInstall": true, "requirePackageOwnership": false }, "compatibility": { "checks": [ { "kind": "osVersion", "operator": ">=", "value": "10.0" } ] } }, "assigned": { "install": { "kind": "expandArchive", "installDirectory": "vsc-rt/{releaseTrack}/{version}/{artifactDistributionVariant}", "expandedRoot": "auto", "createDirectories": [ "data" ] }, "readyStateCheck": { "use": "presenceDiscovery", "expectedVersion": "{version}", "require": { "files": true, "directories": true, "commands": true, "apps": true, "metadataFiles": true, "signatures": true, "fileDetails": true, "registry": true } }, "pathRegistration": { "mode": "user", "source": { "kind": "shim", "use": "presenceDiscovery.commands" } }, "versionUpdatePolicy": { "whenAssigned": "trackSelectedVersion", "onSameSelectedVersion": "reuseOrRepair", "onNewSelectedVersion": "replacePackageOwnedInstall" } }, "removed": { "policy": { "whenNotInInventory": "succeed", "allowedInventoryOwnershipKinds": [ "PackageInstalled" ], "allowUntrackedExternalRemoval": false, "removeDependencies": false }, "operation": { "kind": "deleteInstallDirectory", "pathSource": "inventory.installDirectory" }, "absenceVerification": { "use": "presenceDiscovery", "require": { "files": true, "directories": false, "commands": true, "apps": false, "metadataFiles": false, "signatures": false, "fileDetails": false, "registry": false } }, "postRemoveCleanup": { "packageInventoryRecord": true, "generatedShims": true, "pathEntries": true, "workDirectories": true } } } } |