Skip to content

Commit

Permalink
Merge pull request #123 from xrgzs/feat/add-runningcheese
Browse files Browse the repository at this point in the history
feat: add RunningCheese Browsers
  • Loading branch information
Cnotech authored Oct 26, 2024
2 parents f91bc94 + d31290f commit dcb0601
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 0 deletions.
43 changes: 43 additions & 0 deletions tasks/RunningCheeseChrome/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#:schema ../../schema/task.json
# 任务基本信息
[task]
name = "RunningCheeseChrome"
category = "浏览器"
author = "xrgzs"
url = "https://www.runningcheese.com/chrome"

# 指定使用的模板
[template]
scraper = "External"
# resolver = ""
producer = "Recursive_Unzip"

# 使用到的正则
[regex]
# download_link = ''
download_name = 'RunningCheeseChrome\.7z'
# scraper_version = ''

# 通用参数
[parameter]
# resolver_cd = []
# compress_level = 5
build_manifest = ["${taskName}.wcs","${taskName}/App/chrome.exe"]
# build_cover = ""
# build_delete = []

# 爬虫模板临时参数
# [scraper_temp]

# 自动制作模板要求的参数
[producer_required]
shortcutName = "RunningCheeseChrome"
sourceFile = "App\\chrome.exe"
recursiveUnzipList = [ ]


# 额外备注
[extra]
# require_windows = true
missing_version = "${taskName}/App/chrome.exe"
weekly = true
11 changes: 11 additions & 0 deletions tasks/RunningCheeseChrome/scraper.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Ok, Result } from "ts-results";
import { ScraperReturned } from "../../src/class";

export default async function (): Promise<Result<ScraperReturned, string>> {
// YOUR CODE HERE

return new Ok({
version: "0.0.0",
downloadLink: "https://www.lanzouo.com/b0ufru1i",
});
}
43 changes: 43 additions & 0 deletions tasks/RunningCheeseFirefox/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#:schema ../../schema/task.json
# 任务基本信息
[task]
name = "RunningCheeseFirefox"
category = "浏览器"
author = "xrgzs"
url = "https://www.runningcheese.com/firefox"

# 指定使用的模板
[template]
scraper = "External"
# resolver = ""
producer = "Recursive_Unzip"

# 使用到的正则
[regex]
# download_link = ''
download_name = 'RunningCheeseFirefox\.7z'
# scraper_version = ''

# 通用参数
[parameter]
# resolver_cd = []
# compress_level = 5
build_manifest = ["${taskName}.wcs","${taskName}/Firefox/firefox.exe"]
# build_cover = ""
# build_delete = []

# 爬虫模板临时参数
# [scraper_temp]

# 自动制作模板要求的参数
[producer_required]
shortcutName = "RunningCheeseFirefox"
sourceFile = "Firefox\\firefox.exe"
recursiveUnzipList = [ ]


# 额外备注
[extra]
# require_windows = true
missing_version = "${taskName}/Firefox/firefox.exe"
weekly = true
11 changes: 11 additions & 0 deletions tasks/RunningCheeseFirefox/scraper.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Ok, Result } from "ts-results";
import { ScraperReturned } from "../../src/class";

export default async function (): Promise<Result<ScraperReturned, string>> {
// YOUR CODE HERE

return new Ok({
version: "0.0.0",
downloadLink: "https://www.lanzouo.com/b0ufrtlc",
});
}

0 comments on commit dcb0601

Please sign in to comment.