Skip to content

Commit

Permalink
Migrate to Ash258's GenericBucket layout
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa committed Oct 31, 2020
1 parent aa13d31 commit 2b0a81f
Show file tree
Hide file tree
Showing 25 changed files with 1,168 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
skip_commits:
files:
- '**/*.md'
- '.vscode/**/*'
cache:
- '%USERPROFILE%\Documents\WindowsPowerShell\Modules -> .appveyor.yml'
matrix:
fast_finish: true
build: 'off'
image: Visual Studio 2019
environment:
SCOOP: C:\projects\scoop
SCOOP_HOME: C:\projects\scoop\apps\scoop\current
matrix:
- PowerShell: 5
- PowerShell: 7
init:
- ps: |
(Get-PSProvider 'FileSystem').Home = 'C:\projects\'
if(!(Test-Path "$env:SCOOP_HOME")) { git clone -q --depth=1 "https://github.com/lukesampson/scoop" "$env:SCOOP_HOME" }
for:
- matrix:
only:
- PowerShell: 5
install:
- ps: . "$env:SCOOP_HOME\test\bin\init.ps1"
test_script:
- ps: . "$env:SCOOP_HOME\test\bin\test.ps1" -TestPath "$env:APPVEYOR_BUILD_FOLDER"
- matrix:
only:
- PowerShell: 7
install:
- pwsh: . "$env:SCOOP_HOME\test\bin\init.ps1"
test_script:
- pwsh: . "$env:SCOOP_HOME\test\bin\test.ps1" -TestPath "$env:APPVEYOR_BUILD_FOLDER"
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @rasa
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/hash_check_fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Hash check fail
about: Installation failed due to hash check.
title: '%%manifest%%@%%version%%: Hash check failed'
---

<!-- Replace title placeholders with proper information -->
<!-- Copy terminal output and paste it into code fence block -->

```powershell
```
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/manifest_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: New manifest request
about: Request new manifest to be added into this bucket.
title: '[Request] Add %%applicationName%%'
labels: request, help wanted
---

<!-- Adjust prefilled title with correct name of application -->
<!-- Please provide following information: -->
- **URL to application**: <>
- **Latest version**:
- **Graphical interface**: Yes/No
- **Portable version**: Yes/No <!-- if Yes please specify if portable mode needs to be enabled and list files/folders needed to be handled on update -->

<!-- Is there anything else contributors need to know? -->
<!-- Files, folders to persist across updates -->
<!-- Installation requirements -->
<!-- ... -->
16 changes: 16 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
issues:
types: [ opened, labeled ]
name: Issues
jobs:
issueHandler:
runs-on: ubuntu-latest
name: Issue Verification
steps:
- uses: actions/checkout@main
- name: Verify Issue
uses: Ash258/Scoop-GithubActions@stable
if: github.event.action == 'opened' || (github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'verify'))
env:
GITH_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/issue_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
issue_comment:
types: [ created ]
name: Commented Pull Request
jobs:
pullRequestHandler:
name: Pull Request Validator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Pull Request Validation
uses: Ash258/Scoop-GithubActions@stable
if: startsWith(github.event.comment.body, '/verify')
env:
GITH_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
pull_request:
types: [ opened ]
name: Pull Requests
jobs:
pullRequestHandler:
name: Pull Request Validator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Pull Request Validation
uses: Ash258/Scoop-GithubActions@stable
env:
GITH_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
schedule:
- cron: '0 * * * *'
name: Excavator
jobs:
excavate:
name: Excavator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Excavate
uses: Ash258/Scoop-GithubActions@stable
env:
GITH_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_UPDATED: '1'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ archive/
*.failed
tmp/
wip/

/.cache/
/.vagrant/
133 changes: 133 additions & 0 deletions .vscode/Template.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
//#region General Information
"##": "Some general comment for other maintainers",
"version": "1.0",
"description": "Meaningful description.",
"homepage": "https://ash258.com",
"license": {
"identifier": "MIT",
"url": "https://ash258.com" // Whenever possible attach a program specific URL, otherwise do not use
},
"notes": [ // String or Array Of Strings
"Some notes shown after installation"
],
//#endregion General Information
//#region Requirements
// "depends": "MANIFEST",
// or Array of string
"depends": [
"bucket/someManifest",
"manifest"
],
"suggest": {
"COSI": "COSI"
// "Array": [
// "bucket/manifest",
// "manifest",
// ]
},
//#endregion Requirements
//#region Downloading
"cookie": {
"name": "value"
},
"architecture": { // Or platform specific below (URL, Hash, extract)
"64bit": {
"url": "https://ash258.com",
"hash": "899346f9f283a4fd5aa03015a3f58cde5b9c0b6a5c4d64c2cc74e9b22c1348d7",
"extract_dir": "DIRECTORY INSIDE ARCHIVE"
},
"32bit": {
"url": [
"https://ash258.com",
"https://ash258.com#/cosi.zip"
],
"hash": [
"899346f9f283a4fd5aa03015a3f58cde5b9c0b6a5c4d64c2cc74e9b22c1348d7",
"md5:899346f9f283a4fd5aa03015a3f58cde"
],
"extract_dir": [
"DirectoryInFirstURL",
"DirectoryInSecondtURL"
]
}
},
//#endregion Downloading
//#region Extracting
"innosetup": true,
"extract_dir": "FOLDER",
"extract_to": "folder",
//#endregion Extracting
//#region Installing
"pre_install": [ // String or Array Of Strings
"Run some powershell commands executed before running installer",
"other command"
],
"installer": {
"file": "filename.exe", // Not needed to be specified if installer is downloaded file
"args": "ARGUMENT" // String or Array Of Strings
},
"post_install": "Some powershell commands executed after running installer",
//#region UnInstalling
"uninstaller": {
"file": "uninstaller.exe",
"args": "ARGUMENT" // String or Array Of Strings
},
//$endregion UnInstalling
//#endregion Installing
//#region Links
"bin": [ // String or Array Of Array Of Strings
"singlebinary.exe",
[
"singlebinary.exe",
"withOtherName"
],
[
"singlebinary.exe",
"withOtherName",
"andSomeArguments"
],
[
"singlebinary.exe",
"withOtherName",
"", // Keep blank if none
"withOtherIcon.ico"
]
],
"shortcuts": [ // String or Array Of Array Of Strings (similar to bin)
[
"",
""
]
],
"psmodule": {
"name": "moduleName"
},
"env_add_path": "bin", // String or Array Of Strings
"env_set": {
"KEY": "value"
},
"persist": [ // String or Array Of Strings
"FOLDERTOPERSIST",
"FILETOPERSIST.extension"
],
//#endregion Links
//#region Updating
// "checkver": "regex", Match regex inside string on homepage
// "checkver": "github", If homepage is set to github repo
"checkver": {
"url": "https://exampleurl.cz",
"jsonpath": "$.cosi",
"regex": "REGEXTOMATCH([\\d.]+)",
"replace": "$1"
},
"autoupdate": {
"url": "https://ash258.com#/newName.zip",
"hash": { // Some vendors do not ship hashes 😭
"url": "https://ash258.com",
"regex": "do not write regexes for hash algorithms, use variables ($md5, $sha1, $sha256, $sha512, $checksum)"
},
"note": "Note after autoupdate"
}
//#endregion Updating
}
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"EditorConfig.EditorConfig",
"ms-vscode.PowerShell",
"fabiospampinato.vscode-terminals",
"usernamehw.errorlens",
"redhat.vscode-yaml",
],
}
104 changes: 104 additions & 0 deletions .vscode/json.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"New app String": {
"prefix": "app",
"scope": "json,jsonc",
"body": [
"{",
"\t\"version\": \"$1\",",
"\t\"description\": \"$2\",",
"\t\"homepage\": \"$3\",",
"\t\"license\": {\"identifier\": \"$4\"},",
"\t\"notes\": \"$5\",",
"\t\"depends\": \"$6\",",
"\t\"url\": \"$7\",",
"\t\"hash\": \"$8\",",
"\t\"bin\": \"$9\",",
"\t\"shortcuts\": [",
"\t\t[",
"\t\t\t\"$10.exe\",",
"\t\t\t\"$11\"",
"\t\t]",
"\t],",
"\t\"checkver\":\"$12\",",
"\t\"autoupdate\": {",
"\t\t\"url\": \"$13\"",
"\t}",
"}\n",
],
},
"New app Arch": {
"prefix": "appArch",
"scope": "json,jsonc",
"body": [
"{",
"\t\"version\": \"$1\",",
"\t\"description\": \"$2\",",
"\t\"homepage\": \"$3\",",
"\t\"license\": {\"identifier\": \"$4\"},",
"\t\"notes\": \"$5\",",
"\t\"depends\": \"$6\",",
"\t\"architecture\": {",
"\t\t\"64bit\": {",
"\t\t\t\"url\": \"$7\",",
"\t\t\t\"hash\": \"$8\"",
"\t\t},",
"\t\t\"32bit\": {",
"\t\t\t\"url\": \"$9\",",
"\t\t\t\"hash\": \"$10\"",
"\t\t}",
"\t},",
"\t\"bin\": \"$11\",",
"\t\"shortcuts\": [",
"\t\t[",
"\t\t\t\"$12.exe\",",
"\t\t\t\"$13\"",
"\t\t]",
"\t]",
"}\n",
],
},
"New Architecture": {
"prefix": "arch",
"scope": "json,jsonc",
"body": [
"\"architecture\": {",
"\t\"64bit\": {",
"\t\t\"url\": \"$1\",",
"\t\t\"hash\": \"$2\"",
"\t},",
"\t\"32bit\": {",
"\t\t\"url\": \"$3\",",
"\t\t\"hash\": \"$4\"",
"\t}",
"},",
],
},
"New Autoupdate with Arch": {
"prefix": "upAr",
"scope": "json,jsonc",
"body": [
"\"autoupdate\": {",
"\t\"architecture\": {",
"\t\t\"64bit\": {",
"\t\t\t\"url\": \"$1\"",
"\t\t},",
"\t\t\"32bit\": {",
"\t\t\t\"url\": \"$2\"",
"\t\t}",
"\t}",
"}",
],
},
"Check for existing persist file": {
"prefix": "persistCheck",
"scope": "json,jsonc",
"body": [
"\"\\$file = '$1'\",",
"\"if (!(Test-Path \\\"\\$persist_dir\\\\\\\\\\$file\\\")) {\",",
"\"\tWrite-Host 'File' \\$file 'does not exists. Creating.' -f Yellow\",",
"\"\t\\$CONT = @('$2')\",",
"\"\tSet-Content \\\"\\$dir\\\\\\\\\\$file\\\" (\\$CONT -join \\\"`r`n\\\") -Encoding Ascii\",",
"\"}\"",
],
},
}
Loading

0 comments on commit 2b0a81f

Please sign in to comment.