From 30470ee51f4f05af81f6a6ee2ec713274a74bded Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 19 Apr 2023 23:53:21 +0000 Subject: [PATCH] Update 3 files - /home/dot_local/bin/executable_install-program - /home/.chezmoidata.yaml - /software.yml --- home/.chezmoidata.yaml | 6 +++++ home/dot_local/bin/executable_install-program | 11 ++++++++- software.yml | 23 +++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/home/.chezmoidata.yaml b/home/.chezmoidata.yaml index cc30df1f..67c3c9db 100644 --- a/home/.chezmoidata.yaml +++ b/home/.chezmoidata.yaml @@ -854,6 +854,8 @@ softwareGroups: - mjml - mockoon - mqttx + - pieces + - pieces-cli - postman - responsively - runjs @@ -1178,6 +1180,10 @@ softwarePlugins: docker: plugins: - sapk/plugin-rclone + # TODO Add Intellij missing plugins and fix install + intellij: + plugins: + - https://plugins.jetbrains.com/plugin/17328-pieces--save-search-share--reuse-code-snippets vim: plugins: - https://github.com/dense-analysis/ale.git diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index f51cc134..e0011280 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -1390,7 +1390,16 @@ async function installPackageList(packageManager, packages) { console.error(e) } } - } else if (packageManager === 'pkg') { + } else if (packageManager === 'pkg-darwin') { + for (let pkg of packages) { + try { + runCommand(`Installing ${pkg} via ${packageManager}`, `TMP="$(mktemp)" && curl -sSL "${pkg}" > "$TMP" && sudo installer -pkg "$TMP" -target /`) + log('success', 'Install', `${pkg} successfully installed via ${packageManager}`) + } catch (e) { + log('error', 'Install', `There was an error installing ${pkg} with the system installer`) + console.error(e) + } + } } else if (packageManager === 'port') { const port = which.sync('port', { nothrow: true }) if (port) { diff --git a/software.yml b/software.yml index 3f5aecc7..1c05151d 100644 --- a/software.yml +++ b/software.yml @@ -53,6 +53,7 @@ # npm: altair # pacman: altair # pipx: altair +# pkg-darwin: https://google.com/macos-pkgfile.pkg # pkg-freebsd: altair # pkg-termux: altair # port: altair @@ -107,6 +108,7 @@ installerPreference: - npm - pipx - gem + - pkg-darwin - script - ansible - binary @@ -311,6 +313,27 @@ softwarePackages: scoop: act yay: act _type: cli + pieces: + _bin:snap: pieces-os + _desc: Pieces is a first-in-kind productivity suite that optimizes developer tools and eliminates the chaos of context switching. + _docs: https://docs.pieces.app/ + _github: false + _home: https://pieces.app/ + _name: Pieces + _post:snap: sudo snap connect pieces-os:dotnet-runtime-aspnetcore + _when:pkg-darwin: '! test -d /Applications/Pieces.app' + # TODO - Figure out how to deal with appinstaller + appinstaller: https://builds.pieces.app/stages/production/pieces_suite_windows/appinstaller/download + pkg-darwin: https://builds.pieces.app/stages/production/macos_packaging/pkg/download + snap: pieces-os + pieces-cli: + _bin: pieces + _desc: Pieces is a first-in-kind productivity suite that optimizes developer tools and eliminates the chaos of context switching. + _docs: https://docs.pieces.app/ + _github: false + _home: https://pieces.app/ + _name: Pieces CLI + cask: pieces-cli allure: _bin: allure _desc: '[Allure Report](https://docs.qameta.io/allure-testops/) is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process.'