Update 2 files

- /home/dot_local/bin/executable_install-program
- /software.yml
This commit is contained in:
Brian Zalewski 2023-01-09 10:10:20 +00:00
parent 8030a0f8f8
commit 8801c89daf
2 changed files with 25 additions and 20 deletions

View file

@ -1529,7 +1529,8 @@ async function linkBin(installOrdersBinLink) {
}
for (const binLink of installOrdersBinLink) {
const pkg = softwarePackages[binLink.package][binLink.preference]
if(typeof pkg === 'string' && !which.sync(binLink.bin, { nothrow: true })) {
if(typeof pkg === 'string') {
if(!which.sync(binLink.bin, { nothrow: true })) {
if (binLink.preference === 'flatpak' && flatpak) {
try {
runCommand(`Adding bin link for ${pkg} (${binLink.bin})`, `bash -c 'test -d ${flatpakDir}/app/${pkg} && mkdir -p "${process.env.HOME}/.local/bin/flatpak" && echo "flatpak run ${pkg} \"$*\"" > "${process.env.HOME}/.local/bin/flatpak/${binLink.bin}" && chmod +x "${process.env.HOME}/.local/bin/flatpak/${binLink.bin}"'`)
@ -1553,6 +1554,9 @@ async function linkBin(installOrdersBinLink) {
} else {
log('info', 'Bin', `Link already exists for ${binLink.package}`)
}
} else {
log('info', 'Bin', `Skipping ${binLink.package} because there was more than one _bin value`)
}
}
}

View file

@ -6902,7 +6902,8 @@ softwarePackages:
flatpak: org.videolan.VLC
snap: vlc
vmware:
_bin: null
_bin: vmware
_bin:cask: vmware-id
_desc: '[VMWare Workstation](https://www.vmware.com/products/workstation-pro.html) (or [VMWare Fusion](https://www.vmware.com/products/fusion.html) in the case of macOS) is a hosted hypervisor that runs on x64 versions of Windows and Linux operating systems. It enables users to set up virtual machines on a single physical machine and use them simultaneously along with the host machine. It is similar to [VirtualBox](https://gitlab.com/megabyte-labs/ansible-roles/virtualbox).'
_docs: https://docs.vmware.com/
_github: Not open-source