majkinetor / au-packages Goto Github PK
View Code? Open in Web Editor NEWChocolatey packages by majkinetor
Home Page: https://gist.github.com/majkinetor/a700c70b8847b29ebb1c918d47ee4eb1
License: GNU General Public License v2.0
Chocolatey packages by majkinetor
Home Page: https://gist.github.com/majkinetor/a700c70b8847b29ebb1c918d47ee4eb1
License: GNU General Public License v2.0
Create a shim or link in $env:ChocolateyInstall\bin
to $env:ChocolateyInstall\lib\plantuml\tools\plantuml.jar
Dbeaver should start using CE.
Dbeaver-ee should replace current one.
The chocolatey package appears to be broken for powershell 4 and below. It installs the module in: "C:\Program Files\WindowsPowerShell\Modules\InvokeBuild\3.6.4\InvokeBuild.psm1"
I believe powershell 4 and below doesn't support the version string folder.
When I call Import-Module InvokeBuild
, I get
PS C:\Users\cchapman> Import-Module Invoke-Build
Import-Module : The specified module 'Invoke-Build' was not loaded because no valid module file was found in any module directory.
At line:1 char:1
+ Import-Module Invoke-Build
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (Invoke-Build:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
If I get rid of the version folder, 3.6.4, and move the files up into the InvokeBuild folder, Import-Module
works.
I'll try and submit a pull request to fix this.
Some packages simply return with no error or output. Depends on machine and the package. The same package may work on some other machine.
trid.exe can be embedded.
tridefs update should trigger update, and be embedded also.
https://github.com/majkinetor/au-packages/tree/master/rundeck
RDECK_CLI_OPTS=-Xmx4096m -Xms1024m
otherwise it gets 128MB max by default.rundeck.api.tokens.duration.max=10y
@ C:\rundeck\server\config\rundeck-config.properties
C:\rundeck\server\config\real.properties
C:\rundeck\server\exp\webapp\WEB-INF\grails-app\i18n\messages.properties
)/CliOpts
- Value for RDECK_CLI_OPTS
, by default -Xms1048m -Xmx2096m
/SslOpts
- Value for RDECK_SSL_OPTS
/AdminPwd
- Admin password, by default admin
/TokenDuration
- Token duration/DateFormat
- Date formatDue to chocolatey/choco#112
Looks like the globbing pattern for getting 32bit installer is wrong.
it should be changed from
gi "$toolsDir\*win32.exe"
to
gi "$toolsDir\*x32.exe"
noticed this when it was opened as an issue on the choco repo.
chocolatey/choco#1149
/cc @majkinetor
net user gitlab-runner $Password /add
net localgroup Administrators gitlab-runner /add
cd c:/gitlab-runner
.\gitlab-runner.exe install --user "$Env:COMPUTERNAME\gitlab-runner" --password $Password
.\gitlab-runner.exe start
WMIC USERACCOUNT WHERE "Name='gitlab-runner'" SET PasswordExpires=FALSE
https://chocolatey.org/packages/yed/3.14.4#comment-3203367972
Hello,
I m new to chocolatey, i would like to add some features in the yEd install script to add a shorcut in the program list, and add the association files for yed. If you could add those lines with options it would be great :)Thanks for your work
Write-Host "Creating Start menu shortcut"
Install-ChocolateyShortcut -shortcutFilePath "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\yed.lnk" -targetPath $cmdPath -IconLocation $yedDir\icons\yicon.ico
Write-Host "Creating file association"
Install-ChocolateyFileAssociation -Extension ".graphml" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".graphmlz" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".ygf" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".gml" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".xgml" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".tgf" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".ged" -Executable $cmdPath
@majkinetor $env:chocolatey_bin_root was not official and is deprecated for $env:ChocolateyBinRoot, both of which are adjusted to $env:ChocolateyToolsRoot in 0.9.10. You should only ever rely on it by using Get-BinRoot
Rob Reynolds @ferventcoder Jun 04 17:11
@majkinetor aliases are not working in autodoc - but this is now the name for Get-BinRoot (calling the old still works) - https://chocolatey.org/docs/helpers-get-tools-location
@majkinetor so no, you can never rely on the environment variable directly - always use Get-BinRootRob Reynolds @ferventcoder 15:07
@majkinetor check for $env:ChocolateyBinRoot - see what it is set to. It sounds like something weird is going on in your environment - the 0.9.9 series would not allow just c:\
Allows embeding: https://www.oo-software.com/en/shutup10/eula
https://chocolatey.org/packages/cpu-z.install#comment-3152907634
mm-choco.extension v0.0.4.1 [Approved]
mm-choco.extension package files install completed. Performing other installation steps.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
(32) The process cannot access the file because it is being used by another process: [\\?\C:\ProgramData\chocolatey\ext
ensions\mm-choco\.chocolateyPending]
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
(32) The process cannot access the file because it is being used by another process: [\\?\C:\ProgramData\chocolatey\ext
ensions\mm-choco\.chocolateyPending]
Maximum tries of 3 reached. Throwing error.
Attempted to copy
'C:\ProgramData\chocolatey\lib\mm-choco.extension'
to 'C:\ProgramData\chocolatey\extensions\mm-choco'
but had an error:
(32) The process cannot access the file because it is being used by another process: [\\?\C:\ProgramData\chocolatey\ext
ensions\mm-choco\.chocolateyPending]
Looks like a chocolaty problem
User ferventcoder [email protected] sends the following message to the maintainers of Package 'smplayer'.
This package has been unlisted while you fix a security finding - see http://us8.campaign-archive1.com/?u=86a6d80146a0da7f2223712e4&id=f2fe8dbe6b for details.
Package Url: https://chocolatey.org/packages/smplayer
This program fails to uninstall by the auto-uninstaller. Can you please add a chocolateyUninstall.ps1 file? Depending on the system installed, auto-uninstaller either silently fails or prompts to run the uninstall GUI interactively.
There is a problem, this (and other) plugin(s) enumerates the uninstall keys if there is an invalid entry.
On my computer I had to remove the invalid key NoModify in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-base-8.1.0.0.201510222201 and recreated it as a valid DWORD with value 1. From then on the problem was gone.The entry was an invalid DWORD. AFAIK it was written with the wrong length information (8 instead of 4 bytes)
My System runs Windows 10.
Luckily I indeed exported the relevant registry entry before deleting and recreating it (with value 1):
--<snip>---
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-base-8.1.0.0.201510222201]
"NoModify"=hex(4):01,00,00,00,00,00,00,00
--</snip>---
Link: https://disqus.com/home/discussion/chocolatey/chocolatey_gallery_wkhtmltopdf_099/#comment-2679706558
Reported in comments: https://chocolatey.org/packages/Less
Unless some other user commits.
Problematic code:
https://github.com/majkinetor/chocolatey/blob/master/appveyor.yml#L36-L37
PS D:\Downloads\chocolatey-master\smplayer\tools> $dirs = $Env:ProgramFiles, "$Env:ProgramFiles\*\*", ${ENV:ProgramFiles(x86)}, "${ENV:ProgramFiles(x86)}\*\*"
PS D:\Downloads\chocolatey-master\smplayer\tools> $dirs
C:\Program Files
C:\Program Files\*\*
\*\*
Non existent variable creates a "path not found problem" and blocks execution of what would otherwise be found.
Using Powershell 5.1:
Find-Package fzf | Install-Package -Verbose
VERBOSE: Performing the operation "Install Package" on target "Package 'fzf' version '0.16.6' from 'chocolatey'.".
VERBOSE: NuGet: Installing 'fzf 0.16.6'.
VERBOSE: NuGet: Successfully installed 'fzf 0.16.6'.
VERBOSE:
VERBOSE: CreateFolder -- Already Exists C:\Chocolatey\lib\fzf.0.16.6
VERBOSE: Taking Snapshot «C:\Chocolatey\lib\fzf.0.16.6\tools»
VERBOSE: CreateFolder -- Already Exists C:\Chocolatey\lib\fzf.0.16.6\tools
Install-Package : The archive file type is not supported.
At line:1 char:20
+ Find-Package fzf | Install-Package -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (False C:\Chocol...s_amd64_x64.zip:String) [Install-Package], Exception
+ FullyQualifiedErrorId : UnsupportedArchive,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
and the C:\Chocolatey\lib\fzf.0.16.6\tools directory only contains chocolateyInstall.ps1 but not the zip files (which I assume should be there). The C:\Chocolatey\lib\fzf.0.16.6 does zontain afile named fzf-0.16.6-windows_amd64_x64.zip.txt with this content:
C:\Chocolatey\lib\fzf.0.16.6\tools\chocolateyInstall.ps1
C:\Chocolatey\lib\fzf.0.16.6\tools\fzf-0.16.6-windows_386_x32.zip
C:\Chocolatey\lib\fzf.0.16.6\tools\fzf-0.16.6-windows_amd64_x64.zip
dtgm requested that files should have an extension .txt to be able for people to see them on site directly.
I probably created this at the wrong repository, but this appears related to majkinetor/au#13
Let me know what you want me to do with these. It could not hurt to approve them as is for now as the day was less than the month.
What do you want to do with
... how are people meant to find it? At the very least, I think an introduction page on the wiki, pointing to your docs, will allow more people to see it, and from there, people reading this page: https://chocolatey.org/docs/automatic-packages will be aware of your system, as an alternative to ketarin
Add %1 to generated yed.cmd to support launching with file argument.
Supports launching Yed with opening the specified file. Especially nice with .graphxml extension mapped to yed.cmd and double-clicking the .graphxml file in File Explorer.
Adding pandoc to the PATH if needed
seems a bit misleading as pandoc
or pandoc.exe
isn't added to PATH at all. OpenRA/OpenRA#11421
Javaw cant provide cli messages and doesnt block a script.
Reference guide follows the version and should be part of the package.
https://github.com/majkinetor/au-packages/blob/master/smplayer/tools/chocolateyInstall.ps1#L4
It's a bit more nuanced than that. Here is a working script for you (C4B generates this).
$fileLocation = Join-Path $toolsDir 'puppet-agent-1.3.2-x86.msi'
$fileLocation64 = Join-Path $toolsDir 'puppet-agent-1.3.2-x64.msi'
if (Get-ProcessorBits 64) {
$forceX86 = $env:chocolateyForceX86
if ($forceX86 -eq 'true') {
Write-Debug "User specified '-x86' so forcing 32-bit"
} else {
$fileLocation = $fileLocation64
}
}
privilege separation is needed for publickey authentication
all the installer options are described at https://www.mls-software.com/opensshd-silent.html
also have an option to skip the ssh client installation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.