dynamic config
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user