generated from ScoopInstaller/BucketTemplate
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3ad6d71
Showing
27 changed files
with
360 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# EditorConfig (is awesome): http://EditorConfig.org | ||
|
||
# * top-most EditorConfig file | ||
root = true | ||
|
||
# default style settings | ||
[*] | ||
charset = utf-8 | ||
end_of_line = crlf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Since Scoop is a Windows-only tool, we can safely use CRLF line endings for all text files. | ||
# If Git decides that the content is text, its line endings will be normalized to CRLF in the working tree on checkout. | ||
# In the Git index/repository the files will always be stored with LF line endings. This is fine. | ||
* text=auto eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
name: "Bug Report" | ||
about: "I am facing some problems." | ||
title: "" | ||
labels: "bug" | ||
--- | ||
|
||
<!-- | ||
By opening this issue you confirm that you have searched for similar issues/PRs here already. | ||
Failing to do so will most likely result in closing of this issue without any explanation. | ||
Incomplete form details below might also result in closing of the issue. | ||
--> | ||
|
||
## Bug Report | ||
|
||
**Package Name:** [name of package which has bug(s)] | ||
|
||
### Current Behaviour | ||
|
||
<!-- A clear and concise description of the behaviour. --> | ||
|
||
### Expected Behaviour | ||
|
||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
### Additional context/output | ||
|
||
<!-- Add any other context about the problem here. If applicable, paste terminal output here to help explain. --> | ||
|
||
### Possible Solution | ||
|
||
<!--- Only if you have suggestions on a fix for the bug --> | ||
|
||
### System details | ||
|
||
**Windows version:** [e.g. 7, 8, 10] | ||
|
||
**OS architecture:** [e.g. 32bit, 64bit] | ||
|
||
**PowerShell version:** [output of `"$($PSVersionTable.PSVersion)"`] | ||
|
||
**Additional software:** [(optional) e.g. ConEmu, Git] | ||
|
||
#### Scoop Configuration | ||
<!-- Can be found in ~/.config/scoop/config.json --> | ||
|
||
```json | ||
//# Your configuration here | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: "Package Request" | ||
about: "I have a suggestion for a package (and may want to implement it)!" | ||
title: "[Request] " | ||
labels: "package-request" | ||
--- | ||
|
||
<!-- | ||
By opening this issue you confirm that you have searched for similar issues/PRs here already. | ||
Failing to do so will most likely result in closing of this issue without any explanation. | ||
Incomplete form details below might also result in closing of the issue. | ||
--> | ||
|
||
## Package Request | ||
|
||
### Information | ||
|
||
**Name:** [name of new package] | ||
|
||
**Description:** [clear and concise details of what it is] | ||
|
||
**Homepage:** [a URL/link] | ||
|
||
**Download link(s):** [URL(s)/link(s)] | ||
|
||
**Some indication of popularity/repute:** [GitHub stars/software reviews etc.] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
<!-- | ||
By opening this issue you confirm that you have searched for similar issues/PRs here already. | ||
Failing to do so will most likely result in closing of this issue without any explanation. | ||
--> | ||
|
||
#### Scoop Configuration | ||
<!-- Can be found in ~/.config/scoop/config.json --> | ||
|
||
```json | ||
//# Your configuration here | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Provide a general summary of your changes in the title above --> | ||
|
||
<!-- | ||
By opening this PR you confirm that you have searched for similar issues/PRs here already. | ||
Failing to do so will most likely result in closing of this PR without any explanation. | ||
It is also mandatory to open a relevant issue (either Package Request or Bug Report) for | ||
discussion with the maintainers, before creating any new PR. | ||
Read the contributing guide first to save both your and our time. | ||
--> | ||
|
||
Closes #XXXX | ||
<!-- or --> | ||
Relates to #XXXX | ||
|
||
- [ ] I have read the [Contributing Guide](https://github.com/ScoopInstaller/.github/blob/main/.github/CONTRIBUTING.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test_powershell: | ||
name: WindowsPowerShell | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Bucket | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
path: 'my_bucket' | ||
- name: Checkout Scoop | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ScoopInstaller/Scoop | ||
path: 'scoop_core' | ||
- name: Init and Test | ||
shell: powershell | ||
run: | | ||
$env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')" | ||
.\scoop_core\test\bin\init.ps1 | ||
.\my_bucket\bin\test.ps1 | ||
test_pwsh: | ||
name: PowerShell | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Bucket | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
path: 'my_bucket' | ||
- name: Checkout Scoop | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ScoopInstaller/Scoop | ||
path: 'scoop_core' | ||
- name: Init and Test | ||
shell: pwsh | ||
run: | | ||
$env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')" | ||
.\scoop_core\test\bin\init.ps1 | ||
.\my_bucket\bin\test.ps1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# run every 4 hours | ||
- cron: '20 */4 * * *' | ||
name: Excavator | ||
jobs: | ||
excavate: | ||
name: Excavate | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Excavate | ||
uses: ScoopInstaller/GithubActions@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SKIP_UPDATED: '1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
on: | ||
issue_comment: | ||
types: [ created ] | ||
name: Commented Pull Request | ||
jobs: | ||
pullRequestHandler: | ||
name: PullRequestHandler | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: PullRequestHandler | ||
uses: ScoopInstaller/GithubActions@main | ||
if: startsWith(github.event.comment.body, '/verify') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
on: | ||
issues: | ||
types: [ opened, labeled ] | ||
name: Issues | ||
jobs: | ||
issueHandler: | ||
name: IssueHandler | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: IssueHandler | ||
uses: ScoopInstaller/GithubActions@main | ||
if: github.event.action == 'opened' || (github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'verify')) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
on: | ||
pull_request: | ||
types: [ opened ] | ||
name: Pull Requests | ||
jobs: | ||
pullRequestHandler: | ||
name: PullRequestHandler | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: PullRequestHandler | ||
uses: ScoopInstaller/GithubActions@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.sublime-workspace | ||
*~ | ||
._* | ||
page.html | ||
checkver-*.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"MD013": false, | ||
"MD024": { | ||
"siblings_only": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"EditorConfig.EditorConfig", | ||
"ms-vscode.PowerShell" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Configure PSScriptAnalyzer settings | ||
{ | ||
"[powershell]": { | ||
"editor.formatOnSave": true | ||
}, | ||
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1", | ||
"powershell.codeFormatting.preset": "OTBS", | ||
"powershell.codeFormatting.alignPropertyValuePairs": true, | ||
"powershell.codeFormatting.ignoreOneLineBlock": true, | ||
"json.schemas": [ | ||
{ | ||
"url": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json", | ||
"fileMatch": [ | ||
"bucket/*.json" | ||
] | ||
} | ||
], | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"**/tmp": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
For more information, please refer to <https://unlicense.org> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Scoop Bucket Template | ||
|
||
<!-- Uncomment the following line after replacing placeholders --> | ||
<!-- [![Tests](https://github.com/<username>/<bucketname>/actions/workflows/ci.yml/badge.svg)](https://github.com/<username>/<bucketname>/actions/workflows/ci.yml) [![Excavator](https://github.com/<username>/<bucketname>/actions/workflows/excavator.yml/badge.svg)](https://github.com/<username>/<bucketname>/actions/workflows/excavator.yml) --> | ||
|
||
Template bucket for [Scoop](https://scoop.sh), the Windows command-line installer. | ||
|
||
How do I install these manifests? | ||
--------------------------------- | ||
|
||
To add this bucket, run `scoop bucket add <bucketname> https://github.com/<username>/<bucketname>`. To install, do `scoop install <manifest>`. | ||
|
||
How do I contribute new manifests? | ||
---------------------------------- | ||
|
||
To make a new manifest contribution, please read the [Contributing Guide](https://github.com/ScoopInstaller/.github/blob/main/.github/CONTRIBUTING.md). | ||
|
||
---- | ||
|
||
#### To use this template | ||
|
||
- Modify the Readme.md and the bin/auto-pr.ps1 files accordingly. | ||
- Enable GitHub Actions for this repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } | ||
. "$env:SCOOP_HOME\test\Import-Bucket-Tests.ps1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
param( | ||
# overwrite upstream param | ||
[String]$upstream = "<username>/<bucketname>:main" | ||
) | ||
|
||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } | ||
$autopr = "$env:SCOOP_HOME/bin/auto-pr.ps1" | ||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir | ||
Invoke-Expression -command "& '$autopr' -dir '$dir' -upstream $upstream $($args | ForEach-Object { "$_ " })" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } | ||
$checkurls = "$env:SCOOP_HOME/bin/checkurls.ps1" | ||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir | ||
Invoke-Expression -command "& '$checkurls' -dir '$dir' $($args | ForEach-Object { "$_ " })" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } | ||
$checkver = "$env:SCOOP_HOME/bin/checkver.ps1" | ||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir | ||
Invoke-Expression -command "& '$checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } | ||
$formatjson = "$env:SCOOP_HOME/bin/formatjson.ps1" | ||
$path = "$PSScriptRoot/../bucket" # checks the parent dir | ||
Invoke-Expression -command "& '$formatjson' -dir '$path' $($args | ForEach-Object { "$_ " })" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } | ||
$missing_checkver = "$env:SCOOP_HOME/bin/missing-checkver.ps1" | ||
$dir = "$PSScriptRoot/../bucket" # checks the parent dir | ||
Invoke-Expression -command "& '$missing_checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#Requires -Modules @{ ModuleName = 'Pester'; MaximumVersion = '4.99' } | ||
|
||
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } | ||
$result = Invoke-Pester "$PSScriptRoot/.." -PassThru | ||
exit $result.FailedCount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This directory stores all the JSON manifests. | ||
# Delete this '.gitkeep' file once this directory has any files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This directory stores all the deprecated JSON manifests, which are not meant to be installed. | ||
# Delete this '.gitkeep' file once this directory has any files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This directory stores helper files like shell scripts, registry entries etc. for installable applications. | ||
# Delete this '.gitkeep' file once this directory has any files. |