scoop-installer/Scoop (2024)

master

管理

管理

分支 (4)

标签 (5)

master

main

develop

archieve

0.4.2

0.4.1

0.4.0

v0.4.0

0.3.1

` $popPanel.append(no_data_html) } var debounceLoadMoreBranches = window.globalUtils.debouce(function () { if (concurrentRequestLock) return; branch_page_number += 1; if (branch_page_number > branch_total_pager) return; loadData(search_text, branch_page_number); }, 350); function loadData(search, page) { if (concurrentRequestLock) { return; } concurrentRequestLock = true; var searchParams = search || ""; var pageParams = page || 1; $.ajax({ url: "/" + gon.user_project + "/branches/names.json", type: 'GET', data: { search: searchParams, page: pageParams, }, dataType: 'json', success: function (data) { branch_total_pager = data.total_pages; var html = ''; if (pageParams === 1) { $branchesDropdown.empty(); } data.branches.forEach(function (branch) { var protectRule = ''; var branchName = filterXSS(branch.name); if(branch.branch_type.value === 1) { var rule = filterXSS(branch.protection_rule.wildcard); protectRule = ` ` } html += `

${branchName} ${protectRule}

` }); $branchesDropdown.append(html); $('.protected-branch-popup').popup() if (pageParams === 1 && data.count === 0) { toggleNoResultView($branchesDropdown); } }, complete: function () { concurrentRequestLock = false; } }); } $tagsDropdown.scroll(function() { var tagsPanel = document.getElementById('tags_panel'); var numOfTags = $tagsDropdown.children().length; if (tagsPanel.clientHeight + tagsPanel.scrollTop + 37 > tagsPanel.scrollHeight && numOfTags < 5) { debounceLoadMore.call(); } }); var debounceLoadMore = window.globalUtils.debouce(function () { if (flag_is_loading) return; flag_page_number += 1; if (flag_page_number > flag_total_pager) return; fetchTags(search_text, flag_page_number); }, 350); function fetchTags(search, page) { var searchParams = search || ""; var pageParams = page || 1; if (flag_is_loading) return; flag_is_loading = true; $.ajax({ url: "/" + gon.user_project + "/tags/names.json", data: { search: searchParams, page: pageParams, }, type: "GET", xhrFields: { withCredentials: true, }, success: function (data) { flag_total_pager = data.total_pages; if (pageParams === 1) { $tagsDropdown.html(''); } data.tags.forEach((tag) => { const itemDiv = document.createElement('div'); itemDiv.classList.add('item'); itemDiv.setAttribute('data-value', tag.name); itemDiv.innerText = window.filterXSS(tag.name); $tagsDropdown.append(itemDiv) }); if (pageParams === 1 && data.count === 0) { toggleNoResultView($tagsDropdown); } }, error: function () { }, complete: function () { flag_is_loading = false; }, }); } $('.project-branch-tab-menu').on('click','.tab-menu-item', function (e) { var $currentTab = $(this).data('tab') if($currentTab === 'branches') { $searchNameInput.val('') search_text = ''; loadData() } if($currentTab === 'tags') { $searchNameInput.val('') search_text = ''; fetchTags(); } })

克隆/下载

克隆/下载

HTTPSSSHSVNSVN+SSH下载ZIP

该操作需登录 Gitee 帐号,请先登录后再操作。

立即登录没有帐号,去注册

提示

下载代码请复制以下命令到终端执行

为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置

初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置

1生成 RSA 密钥

2获取 RSA 公钥内容,并配置到 SSH公钥

在 Gitee 上使用 SVN,请访问 使用指南

使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作

Username for 'https://gitee.com': userName

Password for 'https://userName@gitee.com':#私人令牌

分支 4

标签 5

贡献代码

同步代码

创建 Pull Request

了解更多

对比差异通过 Pull Request 同步

同步更新到分支

通过 Pull Request 同步

将会在向当前分支创建一个 Pull
Request,合入后将完成同步

glimmer更换ip归属地查询端口至国内,提高查询速度8882481

136 次提交

.github
.workflow
bin
lib
libexec
supporting
test

.gitattributes

CHANGELOG.md

LICENSE

PSScriptAnalyzerSettings.psd1

README.md

README_CN.md

appveyor.yml

buckets.json

schema.json

Loading...

README

Unlicense

0. 项目实现功能

国内github访问不通畅,且多数开源软件托管在github,导致scoop体验极差。为改善使用体验,将scoop主程序库托管在gitee,增加分流逻辑处理安装与更新所涉及的资源,提示见附图所示。

无任何其他代理

scoop-installer/Scoop (2)

存在其他代理

scoop-installer/Scoop (3)

注意事项:

  • 请勿提取并滥用加速链接,如有发现滥用则取消公开;
  • 退出360后再使用(如有解决办法可提issue);
  • 源代码镜像纯属用爱发电,有用请点star

1. 安装scoop主程序

1.1 初次安装

(第一次在电脑安装时,执行完本节内容,可跳过1.2节内容。)

打开Windows Powershell界面(开始菜单右键)

# 脚本执行策略更改Set-ExecutionPolicy RemoteSigned -scope CurrentUser# 输入Y或A,同意Y# 执行安装命令(默认安装在用户目录下,如需更改请执行“自定义安装目录”命令)iwr -useb scoop.201704.xyz | iex## 自定义安装目录(注意将目录修改为合适位置)irm scoop.201704.xyz -outfile 'install.ps1'.\install.ps1 -ScoopDir 'D:\Scoop' -ScoopGlobalDir 'D:\GlobalScoopApps'

1.2 已安装scoop,更换镜像

(适用于已安装官方源或其他镜像地址的人使用)

# 更换scoop的repo地址scoop config SCOOP_REPO "https://gitee.com/scoop-installer/scoop"# 拉取新库地址scoop update

1.3 切换scoop分支

本库包含如下分支。

分支含义基于原版分支
master代理分流,根据电脑网络环境自动判断master
develop代理分流,同上develop
archieve原版,无任何修改master

安装默认选择master分支,想要切换到其他分支,可执行如下命令

# 切换分支到developscoop config scoop_branch develop# 重新拉取gitscoop update

2. 添加bucket

2.1 安装git程序

#必装git,scoop及bucket更新均依赖此软件scoop install git

2.2 添加已知bucket

#查询已知bucketscoop bucket known#添加bucketscoop bucket add extras

目前已知bucket已镜像至gitee,可访问https://gitee.com/organizations/scoop-installer/projects获取对应bucket库连接,然后按照下节内容添加即可,

2.3 添加第三方bucket

# 基本语法scoop bucket add <别名> <git地址># 举例添加scoopcn([Mostly Chinese applications / 大多是国内应用程序](https://github.com/scoopcn/scoopcn))scoop bucket add scoopcn https://gitee.com/scoop-installer/scoopcn

其他较为优秀的bucket,可点击scoop-installer,有选择性地添加

删除bucket

scoop bucket rm <别名>

3. 安装软件

3.1 代理(可选)

# 添加代理 根据实际需要,填写http代理信息scoop config proxy 127.0.0.1:4412# 删除代理scoop config rm proxy

3.2 软件安装

# 基本语法scoop install <库名/软件名># 例如安装 qq 微信(wechat) scoop install qq# 指定bucket库的软件(如需要)scoop install scoopcn/wechat# 一条命令安装多个软件scoop install qq wechat aria2

3.3 软件卸载

scoop uninstall qq wechat

3.4 软件更新

scoop update *

3.5 其他命令

# 软件暂停更新scoop hold <软件名># 切换到指定版本scoop reset <软件名@版本号># 重置所有软件链接及图标scoop reset *# 删除缓存软件包scoop cache rm *# 删除软件老版本scoop cleanup rm *

4. 常见问题

问题1:Scoop is running the installer as administrator is disabled.

原因:scoop禁止在管理员权限下安装

解决办法:开始菜单右键,选择Windows PowerShell,然后重新执行安装命令

问题2:无法正确下载软件资源,导致软件安装失败

原因:存在多重套娃代理,例如(https://<代理A>/https://<代理B>/<资源链接>),尤其是国内镜像bucket或者针对中国优化的bucket库,其中json资源多数已硬编码了代理链接。以scoop-proxy-cn为例,git资源的下载链接为:https://mirror.ghproxy.com/https://github.com/git-for-windows/git/releases/download/v2.45.0.windows.1/PortableGit-2.45.0-64-bit.7z.exe#/dl.7z,其已经存在了代理B,由于此类链接的IP多为外网IP,默认走程序代理,也即出现上面的代理套娃,跨域失败,资源拉取失败,软件安装失败。

解决办法(3种方法可选):

  1. 执行scoop update将程序更新至最新版本,然后再执行下载(推荐);
  2. 放弃优化软件库,使用本页面推荐的几个bucket;
  3. 切换至archieve分支,放弃本镜像的代理优化。

问题3:远程主机强迫关闭了一个现有的连接

原因:重复多次请求同一个资源,后端关闭了此链接。

解决办法:关闭aria2

问题4:fatal: protocol ''https' is not supported

原因:软件未正确识别内容,详细内容见官方问答区

解决办法: 将命令中的链接使用双引号包裹起来(命令中存在链接,都可以解决),重新执行一遍命令。

C:\Users\用户名>scoop config SCOOP_REPO 'https://gitee.com/glsnames/scoop-installer''SCOOP_REPO' has been set to ''https://gitee.com/glsnames/scoop-installer''C:\Users\用户名>scoop update *Updating Scoop...fatal: protocol ''https' is not supportedUpdate failed.C:\Users\用户名>scoop config SCOOP_REPO "https://gitee.com/glsnames/scoop-installer"'SCOOP_REPO' has been set to 'https://gitee.com/glsnames/scoop-installer'C:\Users\用户名>scoop update *Latest versions for all apps are installed! For more information try 'scoop status'

若依旧不能更新,请用记事本打开config文件(scoop安装目录\apps\scoop\current\.git\config),手动去掉其中url行中的引号,修改保存后再重新执行更新命令。显示为如下内容为正常。

***省略[remote "origin"]url = https://gitee.com/glsnames/scoop-installerfetch = +refs/heads/*:refs/remotes/origin/****省略

5. 常用命令

Usage: scoop <command> [<args>]  Some useful commands are:  alias Manage scoop aliases # 管理指令的替身 bucket Manage Scoop buckets # 管理软件仓库 cache Show or clear the download cache # 查看与管理缓存 checkup Check for potential problems # 做个体检 cleanup Cleanup apps by removing old versions # 清理缓存与旧版本软件包 config Get or set configuration values # 配置Scoop create Create a custom app manifest # 创建自定义软件包 depends List dependencies for an app # 查看依赖 export Exports (an importable) list of installed apps # 导出软件包列表 help Show help for a command # 显示帮助指令 hold Hold an app to disable updates # 禁止软件包更新 home Opens the app homepage # 打开软件包主页 info Display information about an app # 显示软件包信息 install Install apps # 安装软件包的指令 list List installed apps # 列出所有已安装软件包 prefix Returns the path to the specified app # 查看软件包路径 reset Reset an app to resolve conflicts # 恢复软件包版本 search Search available apps # 搜索软件包 status Show status and check for new app versions # 查看软件包更新状态 unhold Unhold an app to enable updates # 启动软件包更新 uninstall Uninstall an app # 卸载软件包的指令 update Update apps, or Scoop itself # 更新软件包 virustotal Look for app hash on virustotal.com # 查看哈希值 which Locate a shim/executable (similar to 'which' on Linux) # 查看可执行程序路径

SPDX-License-Identifier: UNLICENSE or MITINFORMATION ABOUT THIS PROJECT'S LICENSE (SHORT)============================================================================================This project is licensed under the Unlicense or the MIT license,at your option.INFORMATION ABOUT THIS PROJECT'S LICENSE (LONG)============================================================================================This project ("Scoop") is free software, licensed under the Unlicense or theMIT license, at your option. Scoop was previously licensed under only the Unlicense,but was dual-licensed from version 0.2.0.Scoop comes with ABSOLUTELY NO WARRANTY. Use it at your own risk. Scoop is providedon an AS-IS BASIS and its contributors disclaim all warranties.You may use, modify, distribute, sell, copy, compile, or merge Scoop by any means.Copies of both licenses can be found below.THE LICENSE OF SCOOP============================================================================================Unlicense---------This is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, ordistribute this software, either in source code form or as a compiledbinary, for any purpose, commercial or non-commercial, and by anymeans.In jurisdictions that recognize copyright laws, the author or authorsof this software dedicate any and all copyright interest in thesoftware to the public domain. We make this dedication for the benefitof the public at large and to the detriment of our heirs andsuccessors. We intend this dedication to be an overt act ofrelinquishment in perpetuity of all present and future rights to thissoftware under copyright law.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OROTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OROTHER DEALINGS IN THE SOFTWARE.For more information, please refer to <http://unlicense.org/>MIT license-----------The MIT License (MIT)Copyright (c) 2013-2017 Luke Sampson (https://github.com/lukesampson)Copyright (c) 2013-present Scoop contributors (https://github.com/ScoopInstaller/Scoop/graphs/contributors)Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 THESOFTWARE.

Starred246
Star246
Fork1

捐赠

0 人次

举报

举报成功

我们将于2个工作日内通过站内信反馈结果给你!

请认真填写举报原因,尽可能描述详细。

请选择举报类型

取消

发送

"; } $complainCommentType.find('.menu').html(result); } }); $complainCommentType.dropdown({showOnFocus: false}); initedCommentsType = true; } } $complainCommentType.on('click', function() { $complaintCommentsModal.modal({ autofocus: false, onApprove: function() { return false; }, onHidden: function() { restoreCommonentDefault(); } }).modal('show'); }); $complaintCommentsContent.on('change keyup', function(e) { var content = $(this).val(); if ($.trim(content).length > 0 && $complainCommentType.dropdown('get value').length > 0 ) { $complaintCommentBtn.removeClass('disabled'); return; } $complaintCommentBtn.addClass('disabled'); }); $complainCommentType.dropdown({ showOnFocus: false, onChange: function(value, text, $selectedItem) { if (value.length > 0 && $.trim($complaintCommentsContent.val()).length > 0) { $complaintCommentBtn.removeClass('disabled'); return } $complaintCommentBtn.addClass('disabled'); } }); function restoreCommonentDefault() { $complainCommentType.dropdown('restore defaults'); $complaintCommentsContent.val(''); $('.exceeded-size-tip').text('').hide(); $complaintModalTip.text('').hide(); setTimeout(function() { setCommentSendTip(false); }, 1500); } $complaintCommentBtn.on('click',function(e){ var reason = $complaintCommentsContent.val(); var appealableId = $('#landing-comments-complaint-modal').attr('data-id'); if (complaintSending) { return; } var appealType = $complainCommentType.dropdown('get value'); var formData = new FormData(); formData.append('appeal_type_id', appealType); formData.append('reason', reason); formData.append('appeal_type','Note'); formData.append('target_id',appealableId); $.ajax({ type: 'POST', url: "/appeals", cache: false, contentType: false, processData: false, data: formData, beforeSend: function() { setCommentSendStatus(true); }, success: function(res) { if (res.status == 200) { setCommentSendTip(true); setTimeout(function() { $complaintCommentsModal.modal('hide'); restoreCommonentDefault(); }, 3000); } setCommentSendStatus(false); }, error: function(err) { showCommonTips(err.responseJSON.message, 'error'); setCommentSendStatus(false); } }) }); function showCommonTips(text, type) { $complaintModalTip.text(text).show(); if (type == 'error') { $complaintModalTip.removeClass('success').addClass('error'); } else { $complaintModalTip.removeClass('error').addClass('success'); } } function setCommentSendStatus(value) { complaintSending = value; if (complaintSending) { $complaintCommentBtn.addClass('loading'); $complaintCommentsContent.attr('readonly', true); $complainCommentType.attr('readonly', true); } else { $complaintCommentBtn.removeClass('loading'); $complaintCommentsContent.attr('readonly', false); $complainCommentType.attr('readonly', false); } } function setCommentSendTip(value) { if (value) { $('.appeal-success-tip').removeClass('hide'); $('.appeal-tip').addClass('hide'); $('.appeal-form').addClass('hide'); $('#landing-comments-complaint-modal .actions').addClass('hide'); } else { $('.appeal-success-tip').addClass('hide'); $('.appeal-tip').removeClass('hide'); $('.appeal-form').removeClass('hide'); $('#landing-comments-complaint-modal .actions').removeClass('hide'); } }

误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消

提交

scoop-installer/Scoop (2024)
Top Articles
Latest Posts
Article information

Author: Carmelo Roob

Last Updated:

Views: 5751

Rating: 4.4 / 5 (45 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Carmelo Roob

Birthday: 1995-01-09

Address: Apt. 915 481 Sipes Cliff, New Gonzalobury, CO 80176

Phone: +6773780339780

Job: Sales Executive

Hobby: Gaming, Jogging, Rugby, Video gaming, Handball, Ice skating, Web surfing

Introduction: My name is Carmelo Roob, I am a modern, handsome, delightful, comfortable, attractive, vast, good person who loves writing and wants to share my knowledge and understanding with you.