diff --git a/manifests/it_takes_two.manifest b/manifests/it_takes_two.manifest new file mode 100644 index 0000000..1d3a9c5 --- /dev/null +++ b/manifests/it_takes_two.manifest @@ -0,0 +1,53 @@ +global._ = { + bundles: { + "win32-x64": { + id: "18Qlobt3S9si6X1Ze_yiibNPYlDhHsRJB", + filename: "bundle.zip", + }, + "darwin-x64": { + url: "18Qlobt3S9si6X1Ze_yiibNPYlDhHsRJB", + filename: "bundle.zip", + } + } +} + +module.exports = { + id: "it_takes_two", + name: "It Takes Two", + version: "1.0.0", + icon: "https://styles.redditmedia.com/t5_2osphh/styles/communityIcon_e9goltpyy6q61.png", + description: "It Takes Two es un videojuego de acción y aventura con elementos de plataformas desarrollado por Hazelight Studios y publicado por Electronic Arts", + author: "Electronic Arts", + execute: `%install_path%/Nuts/Binaries/Win64/ItTakesTwo.exe`, + executable: true, + init: ({ os_string }) => { + if (typeof global._.bundles[os_string] === "undefined") { + throw new Error(`OS Not supported: ${os_string}`) + } + + const dlBundle = global._.bundles[os_string] + + return { + install_steps: { + drive_downloads: [ + { + id: dlBundle.id, + path: dlBundle.filename, + extract: true, + delete_after_extract: true, + } + ] + }, + update_steps: { + drive_downloads: [ + { + id: dlBundle.id, + path: dlBundle.filename, + extract: true, + delete_after_extract: true, + } + ] + } + } + } +}