dynamic config

This commit is contained in:
EthanShoeDev
2025-12-22 16:52:35 -05:00
parent ac51644bda
commit 3f18e881fa
14 changed files with 2077 additions and 89 deletions

View File

@@ -1,22 +1,22 @@
import { defineConfig, defineWingetPackage } from 'dsc-ts';
import { defineConfig, wingetPackage } from 'dsc-ts';
const machineConfig = defineConfig({
$schema: 'https://aka.ms/dsc/schemas/v3/config/document.json',
resources: [
// {
// name: 'example-registry-key',
// type: 'Microsoft.Windows/Registry',
// properties: {
// keyPath: 'HKCU\\Software\\WinosConfig',
// valueName: 'Version',
// valueData: {
// String: pkg.version,
// },
// _exist: true,
// },
// },
defineWingetPackage({ id: 'BurntSushi.ripgrep.MSVC' }),
],
export default defineConfig(async () => {
await new Promise((resolve) => setTimeout(resolve, 1000));
return {
resources: [
// {
// name: 'example-registry-key',
// type: 'Microsoft.Windows/Registry',
// properties: {
// keyPath: 'HKCU\\Software\\WinosConfig',
// valueName: 'Version',
// valueData: {
// String: pkg.version,
// },
// _exist: true,
// },
// },
wingetPackage({ id: 'BurntSushi.ripgrep.MSVC' }),
],
};
});
export default machineConfig;