mirror of
https://github.com/wavetermdev/chocolatey.git
synced 2026-08-05 13:47:23 -07:00
setup package
This commit is contained in:
-113
@@ -1,113 +0,0 @@
|
||||
# AU template: https://github.com/majkinetor/au-packages-template
|
||||
|
||||
version: '{build}'
|
||||
max_jobs: 1
|
||||
# History plugin requires complete log
|
||||
#clone_depth: 5
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
#build:
|
||||
# verbosity: minimal
|
||||
|
||||
environment:
|
||||
# Set au version to use or omit to use the latest. Specify branch name to use development version from Github
|
||||
au_version:
|
||||
au_push: true
|
||||
# Force test: use 1 to test all, or N to split testing into N groups
|
||||
au_test_groups: 1
|
||||
|
||||
# Github token to commit pushed packages to repository
|
||||
github_user_repo: {github_user}/{repository}
|
||||
github_api_key:
|
||||
secure: YOUR_GITHUB_API_KEY_HERE_ENCRYPTED_STRING #https://ci.appveyor.com/tools/encrypt
|
||||
|
||||
|
||||
# Mail credentials - for error notifications
|
||||
mail_user:
|
||||
secure: YOUR_EMAIL_ACCOUNT_HERE_ENCRYPTED_STRING #https://ci.appveyor.com/tools/encrypt
|
||||
mail_pass:
|
||||
secure: YOUR_EMAIL_PASSWORD_HERE_ENCRYPTED_STRING #https://ci.appveyor.com/tools/encrypt
|
||||
mail_server: smtp.gmail.com
|
||||
mail_port: 587
|
||||
mail_enablessl: true
|
||||
|
||||
# ID of the gist used to save run results - create a gist under the github_user (secret or not) and grab the id - https://gist.github.com/name/id
|
||||
# Optional, leave empty to create anonymous gist
|
||||
gist_id:
|
||||
|
||||
# Force test: gist id for test results
|
||||
gist_id_test:
|
||||
|
||||
# Chocolatey API key - to push updated packages
|
||||
api_key:
|
||||
secure: YOUR_CHOCO_API_KEY_HERE_ENCRYPTED_STRING # https://ci.appveyor.com/tools/encrypt
|
||||
|
||||
init:
|
||||
- git config --global user.email "chocolatey@realdimensions.net"
|
||||
- git config --global user.name "Chocolatey"
|
||||
- git config --global core.safecrlf false
|
||||
|
||||
install:
|
||||
- ps: 'Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version'
|
||||
- ps: $PSVersionTable
|
||||
- git --version
|
||||
- choco --version
|
||||
- ps: |
|
||||
git clone -q https://github.com/majkinetor/au.git $Env:TEMP/au
|
||||
. "$Env:TEMP/au/scripts/Install-AU.ps1" $Env:au_version
|
||||
|
||||
- ps: |
|
||||
"Build info"
|
||||
' {0,-20} {1}' -f 'SCHEDULED BUILD:', ($Env:APPVEYOR_SCHEDULED_BUILD -eq 'true')
|
||||
' {0,-20} {1}' -f 'FORCED BUILD:' , ($Env:APPVEYOR_FORCED_BUILD -eq 'true')
|
||||
' {0,-20} {1}' -f 'RE BUILD:' , ($Env:APPVEYOR_RE_BUILD -eq 'true')
|
||||
|
||||
# Uncomment the below line if you are using any of the functions from chocolatey-core.extension - https://chocolatey.org/packages/chocolatey-core.extension. Ensure you also have it listed in your package's dependencies
|
||||
# - cinst chocolatey-core.extension
|
||||
|
||||
build_script:
|
||||
- ps: |
|
||||
$ErrorActionPreference = 'Continue'
|
||||
|
||||
if ($Env:APPVEYOR_PROJECT_NAME -like '*test*') { ./test_all.ps1 "random $Env:au_test_groups"; return }
|
||||
|
||||
if ( ($Env:APPVEYOR_SCHEDULED_BUILD -ne 'true') -and ($Env:APPVEYOR_FORCED_BUILD -ne 'true') ) {
|
||||
switch -regex ($Env:APPVEYOR_REPO_COMMIT_MESSAGE)
|
||||
{
|
||||
'\[AU (.+?)\]' { $forced = $Matches[1] }
|
||||
|
||||
'\[PUSH (.+?)\]' {
|
||||
$packages = $Matches[1] -split ' '
|
||||
Write-Host "PUSHING PACKAGES: $packages"
|
||||
foreach ($package in $packages) {
|
||||
Write-Host ("{0}`n{1}`n" -f ('-'*60), "PACKAGE: $package")
|
||||
$package_dir = ls -recurse | ? { $_.Name -eq "$package.nuspec"} | select -First 1 | % Directory
|
||||
if (!$package_dir) { Write-Warning "Can't find package '$package'"; continue }
|
||||
pushd $package_dir
|
||||
if (Test-Path update.ps1 -ea 0) { ./update.ps1 }
|
||||
choco pack; Push-Package;
|
||||
popd
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
./update_all.ps1 -ForcedPackages $forced
|
||||
7z a au_temp.zip $Env:TEMP\chocolatey\au\*
|
||||
|
||||
artifacts:
|
||||
- path: update_info.xml
|
||||
- path: Update-AUPackages.md
|
||||
- path: au_temp.zip
|
||||
|
||||
notifications:
|
||||
- provider: Email
|
||||
to: $(mail_user)
|
||||
on_build_success: false
|
||||
on_build_failure: true
|
||||
on_build_status_changed: true
|
||||
|
||||
#on_finish:
|
||||
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||
@@ -0,0 +1,59 @@
|
||||
name: Choco Auto Update
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
|
||||
jobs:
|
||||
update_choco_auto:
|
||||
name: update_${{ matrix.package }}
|
||||
runs-on: windows-latest
|
||||
|
||||
strategy:
|
||||
max-parallel: 1
|
||||
matrix:
|
||||
package: [
|
||||
wave
|
||||
]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Install Chocolatey Automatic Package Updater Module
|
||||
run: Install-Module -Name Chocolatey-AU -Force
|
||||
|
||||
- name: Run ${{ matrix.package }} update script
|
||||
id: update
|
||||
run: |
|
||||
cd _auto\${{ matrix.package }}
|
||||
$UpdateOutput = .\update.ps1
|
||||
$NupkgPath = (($UpdateOutput.Result | Where-Object {$_ -like '*.nupkg''*'}) -split "'")[1]
|
||||
Write-Output "NupkgPath=$($NupkgPath)" >> $Env:GITHUB_OUTPUT
|
||||
$UpdateStatus = if ($UpdateOutput.Result -match 'No new version found') {'No Update'} else {'Update Available'}
|
||||
Write-Output "UpdateStatus=$($UpdateStatus)" >> $Env:GITHUB_OUTPUT
|
||||
|
||||
- name: Test ${{ matrix.package }} install
|
||||
run: Test-Package -Install -Nu ${{ steps.update.outputs.NupkgPath }}
|
||||
if: steps.update.outputs.UpdateStatus == 'Update Available'
|
||||
|
||||
- name: Publish to Chocolatey community feed
|
||||
run: |
|
||||
$Nupkg = '${{ steps.update.outputs.NupkgPath }}'
|
||||
$ApiKey = '${{ secrets.CHOCOLATEY_API_KEY }}'
|
||||
$ChocoServer = 'https://push.chocolatey.org/'
|
||||
choco push $Nupkg --source $ChocoServer --key $ApiKey
|
||||
if: steps.update.outputs.UpdateStatus == 'Update Available'
|
||||
|
||||
- name: Commit Updated nuspec
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Apply Choco package update - ${{ matrix.package }} ${{ steps.update.outputs.newversion }}
|
||||
file_pattern: '*.nuspec *.ps1'
|
||||
if: steps.update.outputs.UpdateStatus == 'Update Available'
|
||||
@@ -1,116 +1,3 @@
|
||||
~~~
|
||||
<!-- EDIT ME-->
|
||||
# Wave Terminal Chocolatey Package
|
||||
|
||||
[](https://ci.appveyor.com/project/YOUR_GITHUB_USERNAME_HERE/chocolatey-packages)
|
||||
[Update status](https://gist.github.com/YOUR_GITHUB_USERNAME_HERE/YOUR_GIST_ID_HERE)
|
||||
[](#)
|
||||
[chocolatey/YOUR_CHOCOLATEY_USERNAME_HERE](https://chocolatey.org/profiles/YOUR_CHOCOLATEY_USERNAME_HERE)
|
||||
|
||||
<!-- EDIT ME-->
|
||||
<!-- REMOVE THE squiggles "~" surrounding this (this should not be a code block) -->
|
||||
~~~
|
||||
|
||||
This repository contains [chocolatey automatic packages](https://chocolatey.org/docs/automatic-packages).
|
||||
The repository is setup so that you can manage your packages entirely from the GitHub web interface (using AppVeyor to update and push packages) and/or using the local repository copy.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
To run locally you will need:
|
||||
|
||||
- Powershell 5+.
|
||||
- [Chocolatey Automatic Package Updater Module](https://github.com/majkinetor/au): `Install-Module au` or `cinst au`.
|
||||
|
||||
In order to setup AppVeyor update runner please take a look at the AU wiki [AppVeyor section](https://github.com/majkinetor/au/wiki/AppVeyor).
|
||||
|
||||
## Create a package
|
||||
|
||||
To create a new package see [Creating the package updater script](https://github.com/majkinetor/au#creating-the-package-updater-script).
|
||||
|
||||
## Testing the package
|
||||
|
||||
In a package directory run: `Test-Package`. This function can be used to start testing in [chocolatey-test-environment](https://github.com/majkinetor/chocolatey-test-environment) via `Vagrant` parameter or it can test packages locally.
|
||||
|
||||
|
||||
## Automatic package update
|
||||
|
||||
### Single package
|
||||
|
||||
Run from within the directory of the package to update that package:
|
||||
|
||||
cd <package_dir>
|
||||
./update.ps1
|
||||
|
||||
If this script is missing, the package is not automatic.
|
||||
Set `$au_Force = $true` prior to script call to update the package even if no new version is found.
|
||||
|
||||
### Multiple packages
|
||||
|
||||
To update all packages run `./update_all.ps1`. It accepts few options:
|
||||
|
||||
```powershell
|
||||
./update_all.ps1 -Name a* # Update all packages which name start with letter 'a'
|
||||
./update_all.ps1 -ForcedPackages 'cpu-z copyq' # Update all packages and force cpu-z and copyq
|
||||
./update_all.ps1 -ForcedPackages 'copyq:1.2.3' # Update all packages but force copyq with explicit version
|
||||
./update_all.ps1 -ForcedPackages 'libreoffice-streams\fresh:6.1.0]' # Update all packages but force libreoffice-streams package to update stream `fresh` with explicit version `6.1.0`.
|
||||
./update_all.ps1 -Root 'c:\packages' # Update all packages in the c:\packages folder
|
||||
```
|
||||
|
||||
The following global variables influence the execution of `update_all.ps1` script if set prior to the call:
|
||||
|
||||
```powershell
|
||||
$au_NoPlugins = $true #Do not execute plugins
|
||||
$au_Push = $false #Do not push to chocolatey
|
||||
```
|
||||
|
||||
You can also call AU method `Update-AUPackages` (alias `updateall`) on its own in the repository root. This will just run the updater for the each package without any other option from `update_all.ps1` script. For example to force update of all packages with a single command execute:
|
||||
|
||||
updateall -Options ([ordered]@{ Force = $true })
|
||||
|
||||
## Testing all packages
|
||||
|
||||
You can force the update of all or subset of packages to see how they behave when complete update procedure is done:
|
||||
|
||||
|
||||
```powershell
|
||||
./test_all.ps1 # Test force update on all packages
|
||||
./test_all.ps1 'cdrtfe','freecad', 'p*' # Test force update on only given packages
|
||||
./test_all.ps1 'random 3' # Split packages in 3 groups and randomly select and test 1 of those each time
|
||||
```
|
||||
|
||||
|
||||
**Note**: If you run this locally your packages will get updated. Use `git reset --hard` after running this to revert the changes.
|
||||
|
||||
## Pushing To Community Repository Via Commit Message
|
||||
|
||||
You can force package update and push using git commit message. AppVeyor build is set up to pass arguments from the commit message to the `./update_all.ps1` script.
|
||||
|
||||
If commit message includes `[AU <forced_packages>]` message on the first line, the `forced_packages` string will be sent to the updater.
|
||||
|
||||
Examples:
|
||||
- `[AU pkg1 pkg2]`
|
||||
Force update ONLY packages `pkg1` and `pkg2`.
|
||||
- `[AU pkg1:ver1 pkg2 non_existent]`
|
||||
Force `pkg1` and use explicit version `ver1`, force `pkg2` and ignore `non_existent`.
|
||||
|
||||
To see how versions behave when package update is forced see the [force documentation](https://github.com/majkinetor/au/blob/master/README.md#force-update).
|
||||
|
||||
You can also push manual packages with command `[PUSH pkg1 ... pkgN]`. This works for any package anywhere in the file hierarchy and will not invoke AU updater at all.
|
||||
|
||||
If there are no changes in the repository use `--allow-empty` git parameter:
|
||||
|
||||
git commit -m '[AU copyq less:2.0]' --allow-empty
|
||||
git push
|
||||
|
||||
## Start using AU with your own packages
|
||||
|
||||
To use this system with your own packages do the following steps:
|
||||
|
||||
* Fork this project. If needed, rename it to `au-packages`.
|
||||
* Delete all existing packages.
|
||||
* Edit the `README.md` header with your repository info.
|
||||
* Set your environment variables. See [AU wiki](https://github.com/majkinetor/au/wiki#environment-variables) for details.
|
||||
|
||||
Add your own packages now, with this in mind:
|
||||
* You can keep both manual and automatic packages together. To get only AU packages any time use `Get-AUPackages` function (alias `lsau` or `gau`)
|
||||
* Keep all package additional files in the package directory (icons, screenshots etc.). This keeps everything related to one package in its own directory so it is easy to move it around or remove it.
|
||||
|
||||
This repository stores the auto-updating Wave Terminal Chocolatey package. The package is hosted [here](https://community.chocolatey.org/packages/wave).
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Updates nuspec file description from README.md
|
||||
|
||||
.DESCRIPTION
|
||||
This script should be called in au_AfterUpdate to put the text in the README.md
|
||||
into description tag of the Nuspec file. The current description will be replaced.
|
||||
Function will throw an error if README.md is not found.
|
||||
|
||||
.PARAMETER SkipFirst
|
||||
Number of start lines to skip from the README.md, by default 0.
|
||||
|
||||
|
||||
.PARAMETER SkipLast
|
||||
Number of end lines to skip from the README.md, by default 0.
|
||||
|
||||
.EXAMPLE
|
||||
function global:au_AfterUpdate { Set-DescriptionFromReadme -SkipFirst 2 }
|
||||
#>
|
||||
function Set-DescriptionFromReadme([int]$SkipFirst=0, [int]$SkipLast=0) {
|
||||
if (!(Test-Path README.md)) { throw 'Set-DescriptionFromReadme: README.md not found' }
|
||||
|
||||
Write-Host 'Setting README.md to Nuspec description tag'
|
||||
$description = gc README.md -Encoding UTF8
|
||||
$endIdx = $description.Length - $SkipLast
|
||||
$description = $description | select -Index ($SkipFirst..$endIdx) | Out-String
|
||||
|
||||
$nuspecFileName = $Latest.PackageName + ".nuspec"
|
||||
$nu = gc $nuspecFileName -Raw
|
||||
$nu = $nu -replace "(?smi)(\<description\>).*?(\</description\>)", "`${1}$($description)`$2"
|
||||
|
||||
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding($False)
|
||||
$NuPath = (Resolve-Path $NuspecFileName)
|
||||
[System.IO.File]::WriteAllText($NuPath, $nu, $Utf8NoBomEncoding)
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
ls $PSScriptRoot\*.ps1 -Exclude all.ps1 | % { . $_ }
|
||||
@@ -1,28 +0,0 @@
|
||||
<# Installs package directly from Github repository
|
||||
To use with your own repo:
|
||||
- Set the path to your packages root in $Repo
|
||||
- Create short link to this raw github script via for example goo.gl
|
||||
- Commit nupkg files in the repository along with the package source code
|
||||
|
||||
Usage:
|
||||
- Pass repository package name as a first argument
|
||||
- Pass any cinst option after that (some may not work ofc. such as `version`)
|
||||
|
||||
Example:
|
||||
iwr https://goo.gl/SZ9c3m | iex; cinst-gh furmark --force
|
||||
#>
|
||||
function cinst-gh {
|
||||
$Repo = "https://github.com/majkinetor/au-packages/tree/master"
|
||||
|
||||
$name = $args[0]
|
||||
$download_page = iwr $Repo/$name -UseBasicParsing
|
||||
$url = $download_page.Links.href -like '*.nupkg'
|
||||
$p = $url -split '/' | select -last 1
|
||||
|
||||
$raw = $Repo -replace 'github.com', 'rawgit.com' -replace 'tree/'
|
||||
iwr "$raw/$(($p -split '\.')[0])/$p" -Out $p
|
||||
$a = $args | select -Skip 1
|
||||
$cmd = "cinst $p $a"
|
||||
Write-Host $cmd; iex $cmd
|
||||
rm $p
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
# <img src="https://cdn.rawgit.com/majkinetor/chocolatey/master/copyq/icon.png" width="48" height="48"/> [CopyQ](https://chocolatey.org/packages/copyq)
|
||||
|
||||
CopyQ monitors system clipboard and saves its content in customized tabs. Saved clipboard can be later copied and pasted directly into any application.
|
||||
|
||||
Items can be:
|
||||
|
||||
* edited with internal editor or with preferred text editor,
|
||||
* moved to other tabs,
|
||||
* drag'n'dropped to applications,
|
||||
* marked with tag or a note,
|
||||
* passed to or changed by custom commands, or simply removed.
|
||||
|
||||
## Features
|
||||
|
||||
* Support for Linux, Windows and OS X 10.9+
|
||||
* Store text, HTML, images or any other custom formats
|
||||
* Quickly browse and filter items in clipboard history
|
||||
* Sort, create, edit, remove, copy/paste, drag'n'drop items in tabs
|
||||
* Add notes or tags to items
|
||||
* System-wide shortcuts with customizable commands
|
||||
* Paste items with shortcut or from tray or main window
|
||||
* Fully customizable appearance
|
||||
* Advanced command-line interface and scripting
|
||||
* Ignore clipboard copied from some windows or containing some text
|
||||
* Support for simple Vim-like editor and shortcuts
|
||||
* Many more features
|
||||
|
||||
## Package parameters
|
||||
|
||||
* `NoDesktopIcon` - do not create desktop icon
|
||||
* `NoStartup` - do not run CopyQ on OS startup
|
||||
|
||||

|
||||
@@ -1,63 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
|
||||
<id>copyq</id>
|
||||
<title>CopyQ</title>
|
||||
<version>3.0.0</version>
|
||||
<authors>Lukas Holocek</authors>
|
||||
<owners>Miodrag Milic</owners>
|
||||
<summary>Cross-platform clipboard manager with advanced features</summary>
|
||||
<description>CopyQ monitors system clipboard and saves its content in customized tabs. Saved clipboard can be later copied and pasted directly into any application.
|
||||
|
||||
Items can be:
|
||||
|
||||
* edited with internal editor or with preferred text editor,
|
||||
* moved to other tabs,
|
||||
* drag'n'dropped to applications,
|
||||
* marked with tag or a note,
|
||||
* passed to or changed by custom commands, or simply removed.
|
||||
|
||||
## Features
|
||||
|
||||
* Support for Linux, Windows and OS X 10.9+
|
||||
* Store text, HTML, images or any other custom formats
|
||||
* Quickly browse and filter items in clipboard history
|
||||
* Sort, create, edit, remove, copy/paste, drag'n'drop items in tabs
|
||||
* Add notes or tags to items
|
||||
* System-wide shortcuts with customizable commands
|
||||
* Paste items with shortcut or from tray or main window
|
||||
* Fully customizable appearance
|
||||
* Advanced command-line interface and scripting
|
||||
* Ignore clipboard copied from some windows or containing some text
|
||||
* Support for simple Vim-like editor and shortcuts
|
||||
* Many more features
|
||||
|
||||
## Package parameters
|
||||
|
||||
* `NoDesktopIcon` - do not create desktop icon
|
||||
* `NoStartup` - do not run CopyQ on OS startup
|
||||
|
||||

|
||||
</description>
|
||||
<projectUrl>https://hluk.github.io/CopyQ</projectUrl>
|
||||
<tags>admin clipboard copyq cross-platform foss</tags>
|
||||
<copyright></copyright>
|
||||
<licenseUrl>https://github.com/hluk/CopyQ/blob/master/LICENSE</licenseUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<iconUrl>https://cdn.rawgit.com/majkinetor/chocolatey/master/copyq/icon.png</iconUrl>
|
||||
<dependencies>
|
||||
<dependency id="chocolatey-core.extension" version="1.2" />
|
||||
</dependencies>
|
||||
<releaseNotes>https://github.com/hluk/CopyQ/releases/tag/v3.0.0</releaseNotes>
|
||||
<docsUrl>https://github.com/hluk/CopyQ/wiki</docsUrl>
|
||||
<bugTrackerUrl>https://github.com/hluk/CopyQ/issues</bugTrackerUrl>
|
||||
<projectSourceUrl>https://github.com/hluk/CopyQ</projectSourceUrl>
|
||||
<packageSourceUrl>https://github.com/majkinetor/chocolatey/tree/master/copyq</packageSourceUrl>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="tools\**" target="tools" />
|
||||
<file src="legal\**" target="legal" />
|
||||
</files>
|
||||
</package>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.5 KiB |
File diff suppressed because it is too large
Load Diff
@@ -1,25 +0,0 @@
|
||||
VERIFICATION
|
||||
|
||||
Verification is intended to assist the Chocolatey moderators and community
|
||||
in verifying that this package's contents are trustworthy.
|
||||
|
||||
Package can be verified like this:
|
||||
|
||||
1. Go to
|
||||
|
||||
x32: https://github.com/hluk/CopyQ/releases/download/v3.0.0/copyq-v3.0.0-setup.exe
|
||||
|
||||
to download the installer.
|
||||
|
||||
2. You can use one of the following methods to obtain the SHA256 checksum:
|
||||
- Use powershell function 'Get-FileHash'
|
||||
- Use Chocolatey utility 'checksum.exe'
|
||||
|
||||
checksum32: FE6C8497EC2BE04FA2C82E51B83B9FCA4C69A6E981C76648B57139FC699542D1
|
||||
|
||||
Using AU:
|
||||
|
||||
Get-RemoteChecksum https://github.com/hluk/CopyQ/releases/download/v3.0.0/copyq-v3.0.0-setup.exe
|
||||
|
||||
File 'license.txt' is obtained from:
|
||||
https://raw.githubusercontent.com/hluk/CopyQ/master/LICENSE
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 58 KiB |
@@ -1,33 +0,0 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$packageName = 'copyq'
|
||||
|
||||
$fileType = 'exe'
|
||||
$toolsDir = Split-Path $MyInvocation.MyCommand.Definition
|
||||
$embedded_path = gi "$toolsDir\*.$fileType"
|
||||
|
||||
$pp = Get-PackageParameters
|
||||
$tasks=@()
|
||||
if (!$pp.NoStartup) { Write-Host 'Automatically start with Windows'; $tasks += 'startup'}
|
||||
if (!$pp.NoDesktopIcon) { Write-Host 'Create desktop icon'; $tasks += 'desktopicon' }
|
||||
|
||||
$packageArgs = @{
|
||||
packageName = $packageName
|
||||
fileType = $fileType
|
||||
file = $embedded_path
|
||||
silentArgs = '/VERYSILENT /TASKS=' + ($tasks -join ',')
|
||||
validExitCodes = @(0)
|
||||
softwareName = $packageName
|
||||
}
|
||||
Install-ChocolateyInstallPackage @packageArgs
|
||||
rm $embedded_path -ea 0
|
||||
|
||||
$packageName = $packageArgs.packageName
|
||||
$installLocation = Get-AppInstallLocation $packageName
|
||||
if (!$installLocation) { Write-Warning "Can't find $packageName install location"; return }
|
||||
Write-Host "$packageName installed to '$installLocation'"
|
||||
|
||||
Register-Application "$installLocation\$packageName.exe"
|
||||
Write-Host "$packageName registered as $packageName"
|
||||
|
||||
start "$installLocation\$packageName.exe"
|
||||
@@ -1,44 +0,0 @@
|
||||
import-module au
|
||||
. $PSScriptRoot\..\_scripts\all.ps1
|
||||
|
||||
$releases = 'https://github.com/hluk/CopyQ/releases'
|
||||
|
||||
function global:au_SearchReplace {
|
||||
@{
|
||||
".\tools\chocolateyInstall.ps1" = @{
|
||||
"(?i)(^\s*[$]packageName\s*=\s*)('.*')"= "`$1'$($Latest.PackageName)'"
|
||||
"(?i)(^\s*[$]fileType\s*=\s*)('.*')" = "`$1'$($Latest.FileType)'"
|
||||
}
|
||||
|
||||
"$($Latest.PackageName).nuspec" = @{
|
||||
"(\<releaseNotes\>).*?(\</releaseNotes\>)" = "`${1}$($Latest.ReleaseNotes)`$2"
|
||||
}
|
||||
|
||||
".\legal\VERIFICATION.txt" = @{
|
||||
"(?i)(\s+x32:).*" = "`${1} $($Latest.URL32)"
|
||||
"(?i)(checksum32:).*" = "`${1} $($Latest.Checksum32)"
|
||||
"(?i)(Get-RemoteChecksum).*" = "`${1} $($Latest.URL32)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function global:au_BeforeUpdate { Get-RemoteFiles -Purge }
|
||||
function global:au_AfterUpdate { Set-DescriptionFromReadme -SkipFirst 2 }
|
||||
|
||||
function global:au_GetLatest {
|
||||
$download_page = Invoke-WebRequest -Uri $releases
|
||||
|
||||
$re = "copyq-.*-setup.exe"
|
||||
$url = $download_page.links | ? href -match $re | select -First 1 -expand href
|
||||
$url = 'https://github.com' + $url
|
||||
|
||||
$version = $url -split '-|.exe' | select -Last 1 -Skip 2
|
||||
|
||||
return @{
|
||||
URL32 = $url
|
||||
Version = $version.Replace('v','')
|
||||
ReleaseNotes = "$releases/tag/${version}"
|
||||
}
|
||||
}
|
||||
|
||||
update -ChecksumFor none
|
||||
@@ -1,31 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>less</id>
|
||||
<version>4.87</version>
|
||||
<title>Less for Windows</title>
|
||||
<authors>Mark Nudelman</authors>
|
||||
<owners>Miodrag Milić</owners>
|
||||
<licenseUrl>http://www.gnu.org/copyleft/gpl.html</licenseUrl>
|
||||
<projectUrl>http://www.greenwoodsoftware.com/less/</projectUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>
|
||||
Less is a CLI pager, a program that displays text files. Other pagers commonly in use are `more` and `pg`. Less is similar to `more`, but allows backward movement in the file as well as forward movement. Also, less does not have to read the entire input file before starting, so with large input files it starts up faster than text editors like vi.
|
||||
|
||||
**NOTE**: If you are using [PSCX](https://chocolatey.org/packages/pscx), you must override its internally distributed less version using the following in your `$PROFILE`:
|
||||
|
||||
($Pscx:Preferences).PageHelpUsingLess = $false
|
||||
</description>
|
||||
<summary>Less is a free, open-source file pager</summary>
|
||||
<tags>pager viewer</tags>
|
||||
<releaseNotes>See http://www.greenwoodsoftware.com/less/news.481.html</releaseNotes>
|
||||
<mailingListUrl>http://www.greenwoodsoftware.com/less/less-announce.html</mailingListUrl>
|
||||
<docsUrl>http://man7.org/linux/man-pages/man1/less.1.html</docsUrl>
|
||||
<projectSourceUrl>http://www.greenwoodsoftware.com/less/download.html#source</projectSourceUrl>
|
||||
<packageSourceUrl>https://github.com/majkinetor/chocolatey/tree/master/less</packageSourceUrl>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="tools\**" target="tools" />
|
||||
</files>
|
||||
</package>
|
||||
@@ -1,18 +0,0 @@
|
||||
VERIFICATION
|
||||
|
||||
Verification is intended to assist the Chocolatey moderators and community
|
||||
in verifying that this package's contents are trustworthy.
|
||||
|
||||
Package can be verified like this:
|
||||
|
||||
1. Go to
|
||||
|
||||
x32: http://guysalias.tk/misc/less/less-487-win32-static-x86.7z.7z
|
||||
|
||||
to download the zip package.
|
||||
|
||||
2. You can use one of the following methods to obtain the checksum:
|
||||
- Use powershell function 'Get-FileHash'
|
||||
- Use Chocolatey utility 'checksum.exe'
|
||||
|
||||
checksum32:
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,46 +0,0 @@
|
||||
import-module au
|
||||
|
||||
$releases = 'http://guysalias.tk/misc/less/'
|
||||
|
||||
function global:au_SearchReplace {
|
||||
@{
|
||||
".\tools\VERIFICATION.txt" = @{
|
||||
"(?i)(\s+x32:).*" = "`${1} $($Latest.URL32)"
|
||||
"(?i)(checksum32:).*" = "`${1} $($Latest.Checksum32)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function global:au_BeforeUpdate {
|
||||
set-alias 7z $Env:chocolateyInstall\tools\7z.exe
|
||||
|
||||
$lessdir = "$PSScriptRoot\less-*-win*"
|
||||
rm $lessdir -Recurse -Force -ea ignore
|
||||
|
||||
iwr $Latest.URL32 -OutFile "$PSScriptRoot\less.7z"
|
||||
7z x $PSScriptRoot\less.7z
|
||||
|
||||
rm $PSScriptRoot\tools\* -Recurse -Force -Exclude VERIFICATION.txt
|
||||
mv $lessdir\* $PSScriptRoot\tools -Force
|
||||
rm $lessdir -Recurse -Force -ea ignore
|
||||
rm $PSScriptRoot\less.7z -ea ignore
|
||||
}
|
||||
|
||||
function global:au_GetLatest {
|
||||
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing
|
||||
|
||||
$re = 'less-.+win.+\.7z$'
|
||||
$url = $download_page.links | ? href -match $re | select -First 1 -expand href
|
||||
$version = "$( ($url -split '-' | select -Index 1) / 100 )"
|
||||
@{
|
||||
URL32 = $releases + $url
|
||||
Version = $version
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
update -ChecksumFor none
|
||||
} catch {
|
||||
$ignore = 'Unable to connect to the remote server'
|
||||
if ($_ -match $ignore) { Write-Host $ignore; 'ignore' } else { throw $_ }
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>librecad</id>
|
||||
<version>2.1.3</version>
|
||||
<title>LibreCAD</title>
|
||||
<owners>chocolatey</owners>
|
||||
<authors>LibreCAD community</authors>
|
||||
<licenseUrl>https://github.com/LibreCAD/LibreCAD/blob/master/LICENSE</licenseUrl>
|
||||
<projectUrl>http://librecad.org/cms/home.html</projectUrl>
|
||||
<projectSourceUrl>https://github.com/LibreCAD/LibreCAD</projectSourceUrl>
|
||||
<docsUrl>http://wiki.librecad.org/</docsUrl>
|
||||
<mailingListUrl>http://librecad.org/cms/home/get-help/forum.html</mailingListUrl>
|
||||
<bugTrackerUrl>https://github.com/LibreCAD/LibreCAD/issues</bugTrackerUrl>
|
||||
<iconUrl>https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/edba4a5849ff756e767cba86641bea97ff5721fe/icons/librecad.svg</iconUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>
|
||||
LibreCAD is a free Open Source CAD application for Windows, Apple and Linux. Support and documentation is free from our large, dedicated community of users, contributors and developers.
|
||||
</description>
|
||||
<summary>Open Source CAD application</summary>
|
||||
<releaseNotes>https://github.com/LibreCAD/LibreCAD/releases/tag/2.1.3</releaseNotes>
|
||||
<copyright />
|
||||
<tags>CAD 2D admin</tags>
|
||||
<packageSourceUrl>https://github.com/chocolatey/chocolatey-coreteampackages/tree/master/automatic/librecad</packageSourceUrl>
|
||||
<dependencies>
|
||||
<dependency id="chocolatey-core.extension" version="1.0" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="tools\**" target="tools" />
|
||||
</files>
|
||||
</package>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user