差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| windows:scoop [2021/10/13 07:56] – [付録] ともやん | windows:scoop [2023/07/21 02:45] (現在) – [独自のバケットを検索] ともやん | ||
|---|---|---|---|
| 行 184: | 行 184: | ||
| ※PowerShell バージョンチェックなどを行っている。\\ | ※PowerShell バージョンチェックなどを行っている。\\ | ||
| Scoop を実行するには、PowerShell 5 以降が必要です。\\ | Scoop を実行するには、PowerShell 5 以降が必要です。\\ | ||
| - | PowerShell アップグレード: | + | PowerShell アップグレード: |
| ===== バケット [bucket] ===== | ===== バケット [bucket] ===== | ||
| 行 266: | 行 266: | ||
| [[https:// | [[https:// | ||
| - | **[[https:// | + | **[[https:// |
| 最新の **PowerShell Core** などが入手できる人気のバケット。\\ | 最新の **PowerShell Core** などが入手できる人気のバケット。\\ | ||
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| <code powershell> | <code powershell> | ||
| - | $ scoop bucket add dorado https:// | + | $ scoop bucket add dorado https:// |
| </ | </ | ||
| **PowerShell Core** のインストール。\\ | **PowerShell Core** のインストール。\\ | ||
| 行 283: | 行 283: | ||
| ==== 独自のバケットを検索 ==== | ==== 独自のバケットを検索 ==== | ||
| + | [[https:// | ||
| + | [[https:// | ||
| [[https:// | [[https:// | ||
| < | < | ||
| + | scoop のバケットに存在しないアプリは [[https:// | ||
| + | [[https:// | ||
| ==== 参考文献 ==== | ==== 参考文献 ==== | ||
| [[https:// | [[https:// | ||
| 行 789: | 行 793: | ||
| ===== Scoop アプリの更新 [update] ===== | ===== Scoop アプリの更新 [update] ===== | ||
| - | <code powershell> | + | <WRAP color_term> |
| - | $ scoop update | + | <WRAP color_command>< |
| - | $ scoop update * | + | <b class=GRN> |
| - | </code> | + | <b class=GRN> |
| + | </pre></ | ||
| + | </WRAP> | ||
| ※**scoop update** - scoop 自体を更新する。\\ | ※**scoop update** - scoop 自体を更新する。\\ | ||
| ※**scoop update *** - scoop アプリを更新する。\\ | ※**scoop update *** - scoop アプリを更新する。\\ | ||
| 行 901: | 行 907: | ||
| ===== インストール済みアプリの一覧 [list] ===== | ===== インストール済みアプリの一覧 [list] ===== | ||
| - | <code powershell> | + | <WRAP color_term> |
| - | $ scoop list | + | <WRAP color_command>< |
| - | </code> | + | <b class=GRN> |
| - | < | + | </pre></ |
| - | <code powershell> | + | <WRAP color_result> |
| Installed apps: | Installed apps: | ||
| 行 933: | 行 939: | ||
| vim 8.2 | vim 8.2 | ||
| youtube-dl-gui 0.4 [extras] | youtube-dl-gui 0.4 [extras] | ||
| - | </ | + | </code></ |
| </ | </ | ||
| 行 1142: | 行 1148: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | < | ||
| + | $ scoop reinstall sccache | ||
| + | Uninstalling ' | ||
| + | <b class=GRN>' | ||
| + | Installing ' | ||
| + | Loading sccache-0.2.14-x86_64-pc-windows-msvc.tar.gz from cache | ||
| + | Checking hash of <b class=HIC> | ||
| + | Extracting <b class=HIC> | ||
| + | Linking ~\scoop\apps\sccache\current => ~\scoop\apps\sccache\0.2.14 | ||
| + | Creating shim for ' | ||
| + | <b class=GRN>' | ||
| + | </ | ||
| ===== Scoop アプリのインストール ===== | ===== Scoop アプリのインストール ===== | ||
| 行 1209: | 行 1228: | ||
| {{: | {{: | ||
| - | ===== 技術資料 ===== | + | ===== Scoop のアンインストール |
| - | + | ||
| - | ==== scoop uninstall scoop コマンドの動作 ==== | + | |
| - | Scoop のアンインストール\\ | + | |
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| <code powershell> | <code powershell> | ||
| 行 1218: | 行 1234: | ||
| </ | </ | ||
| </ | </ | ||
| - | < | + | <WRAP prewrap 100% # |
| + | <code powershell> | ||
| + | WARN This will uninstall Scoop and all the programs that have been installed with Scoop! | ||
| + | Are you sure? (yN): y | ||
| + | Removing ~\scoop\shims from your path. | ||
| + | Scoop has been uninstalled. | ||
| + | </ | ||
| + | </ | ||
| + | < | ||
| - | < | ||
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| <code powershell> | <code powershell> | ||
| - | $ del .\scoop -Force | + | $ del ~\scoop -Force |
| </ | </ | ||
| </ | </ | ||
| + | < | ||
| + | |||
| [[https:// | [[https:// | ||
| + | |||
| + | ===== 独自パッケージの作成 ===== | ||
| + | Scoop の独自パッケージを作成して、自前の bucket でアプリを配信するのは意外と簡単です🥰\\ | ||
| + | |||
| + | **github に好きな名前でリポジトリを作成する。(自前の bucket)**\\ | ||
| + | [[git> | ||
| + | ローカルでファイルの準備。\\ | ||
| + | <WRAP prewrap 100% mincode> | ||
| + | < | ||
| + | $ mkdir usukawa-taiyaki | ||
| + | $ cd usukawa-taiyaki | ||
| + | $ echo "# usukawa-taiyaki" | ||
| + | $ git init | ||
| + | $ git add README.md | ||
| + | $ git commit -m "first commit" | ||
| + | $ git branch -M main | ||
| + | $ git remote add origin git@github.com: | ||
| + | $ git push -u origin main | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | **既存のアプリを Scoop 化するにはアプリをインストールするためのマニフェスト(app manifest)を書く。** | ||
| + | Mixxx を Scoop 化するための最低限なマニフェスト定義を書く🤔\\ | ||
| + | <WRAP prewrap 100% mincode> | ||
| + | <code javascript mixxx.json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | [ | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | ] | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ローカルでマニフェストがインストール可能か確認する🤤\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ scoop install .\mixxx.json | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| + | Installing ' | ||
| + | Loading mixxx-2.3.1-win64.msi from cache | ||
| + | Checking hash of mixxx-2.3.1-win64.msi ... ok. | ||
| + | Extracting mixxx-2.3.1-win64.msi ... done. | ||
| + | Linking ~\scoop\apps\mixxx\current => ~\scoop\apps\mixxx\2.3.1 | ||
| + | Creating shim for ' | ||
| + | Creating shortcut for Mixxx (mixxx.exe) | ||
| + | ' | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | マニフェストを自前の bucket に追加する🤤\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ git add mixxx.json | ||
| + | $ git commit -m "Added manifest for Mixxx package." | ||
| + | $ git push | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Scoop で自前の bucket を使えるように登録する。\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ scoop bucket add usukawa-taiyaki https:// | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| + | Checking repo... ok | ||
| + | The usukawa-taiyaki bucket was added successfully. | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | アプリを一旦アンインストールしてから、自前の bucket が使用出来るか確認する🤔\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ scoop uninstall mixxx | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| + | Uninstalling ' | ||
| + | Removing shim for ' | ||
| + | Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\Mixxx.lnk | ||
| + | Unlinking ~\scoop\apps\mixxx\current | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | $ scoop install mixxx | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP prewrap 100% result> | ||
| + | < | ||
| + | Installing ' | ||
| + | Loading mixxx-2.3.1-win64.msi from cache | ||
| + | Checking hash of mixxx-2.3.1-win64.msi ... ok. | ||
| + | Extracting mixxx-2.3.1-win64.msi ... done. | ||
| + | Linking ~\scoop\apps\mixxx\current => ~\scoop\apps\mixxx\2.3.1 | ||
| + | Creating shim for ' | ||
| + | Creating shortcut for Mixxx (mixxx.exe) | ||
| + | ' | ||
| + | </ | ||
| + | </ | ||
| + | 参考: [[qita> | ||
| + | [[git> | ||
| ===== トラブルシューティング ===== | ===== トラブルシューティング ===== | ||
| 行 1507: | 行 1657: | ||
| </ | </ | ||
| </ | </ | ||
| - | |||
| - | ===== Scoop のアンインストール ===== | ||
| - | <WRAP prewrap 100%> | ||
| - | <code powershell> | ||
| - | $ scoop uninstall scoop | ||
| - | </ | ||
| - | </ | ||
| - | <WRAP prewrap 100% #result> | ||
| - | <code powershell> | ||
| - | WARN This will uninstall Scoop and all the programs that have been installed with Scoop! | ||
| - | Are you sure? (yN): y | ||
| - | Removing ~\scoop\shims from your path. | ||
| - | Scoop has been uninstalled. | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | <WRAP prewrap 100%> | ||
| - | <code powershell> | ||
| - | $ del ~\scoop -Force | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | ===== トラブルシューティング ===== | ||
| ==== The SSL connection could not be established エラーで scoop がインストールできない場合 ==== | ==== The SSL connection could not be established エラーで scoop がインストールできない場合 ==== | ||
| 行 1538: | 行 1665: | ||
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| - | < | + | < |
| - | <div id=" | + | |
| - | <pre> | + | |
| $ iwr -useb get.scoop.sh | iex | $ iwr -useb get.scoop.sh | iex | ||
| Initializing... | Initializing... | ||
| <b class=RED> | <b class=RED> | ||
| - | </ | + | </ |
| - | </ | + | |
| - | </ | + | |
| この問題とは別の症状とは思われるが、TLS1.3を明示指定すると回避できたので記載しておくことにする。\\ | この問題とは別の症状とは思われるが、TLS1.3を明示指定すると回避できたので記載しておくことにする。\\ | ||
| 行 1555: | 行 1678: | ||
| \\ | \\ | ||
| <WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
| - | < | + | < |
| - | <div id=" | + | |
| - | <pre> | + | |
| $ [Net.ServicePointManager]:: | $ [Net.ServicePointManager]:: | ||
| $ iwr -useb get.scoop.sh | iex | $ iwr -useb get.scoop.sh | iex | ||
| 行 1569: | 行 1690: | ||
| <b class=GRN> | <b class=GRN> | ||
| Type 'scoop help' for instructions. | Type 'scoop help' for instructions. | ||
| - | </ | + | </pre></ |
| - | </ | + | </WRAP> |
| - | </ | + | |
| + | ==== $7zPath で Cannot validate argument on parameter ' | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | <b class=HIC> | ||
| + | Installing ' | ||
| + | Loading Firefox%20Setup%2093.0.exe from cache | ||
| + | Checking hash of <b class=HIC> | ||
| + | Extracting <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | |||
| + | Failed to extract files from C: | ||
| + | Log file: | ||
| + | ~\scoop\apps\firefox\93.0\7zip.log | ||
| + | |||
| + | Please try again or create a new issue by using the following link and paste your console output: | ||
| + | https:// | ||
| + | <b class=HIC> | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | scoop の shims には shim ファイルが存在しているが...🤔\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | <b class=HIC> | ||
| + | C: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 7z を実行すると \apps\7zip\current\7z.exe は認識されないとのエラーになる😥\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | <b class=HIC> | ||
| + | <b class=RED>&:</ | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | <b class=HIC> | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | \apps\7zip\current が指している先に 7z.exe が何故か存在していない😥\\ | ||
| + | {{: | ||
| + | |||
| + | 7zip を修復するには 7zip を強制アップデートで再インストールする🤤\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | <b class=HIC> | ||
| + | <b class=HIY> | ||
| + | <b class=HIB> | ||
| + | Updating ' | ||
| + | Downloading new version | ||
| + | Loading 7z1900-x64.msi from cache | ||
| + | Checking hash of <b class=HIC> | ||
| + | Uninstalling ' | ||
| + | Removing shim for ' | ||
| + | Unlinking ~\scoop\apps\7zip\current | ||
| + | Installing ' | ||
| + | Loading 7z1900-x64.msi from cache | ||
| + | Extracting <b class=HIC> | ||
| + | Linking ~\scoop\apps\7zip\current => ~\scoop\apps\7zip\19.00 | ||
| + | Creating shim for ' | ||
| + | Creating shortcut for 7-Zip (7zFM.exe) | ||
| + | <b class=GRN>' | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 壊れた 7zip は .old に移動されて、7zip が再インストールされる。\\ | ||
| + | {{: | ||
| + | {{: | ||
| + | |||
| + | そして、アプリが正常にインストール出来ることを確認する🤔\\ | ||
| + | 正常にインストールできましたねぇ😊\\ | ||
| + | <WRAP prewrap 100%> | ||
| + | < | ||
| + | <b class=HIC> | ||
| + | Uninstalling ' | ||
| + | <b class=GRN>' | ||
| + | <b class=HIC> | ||
| + | Installing ' | ||
| + | Loading Firefox%20Setup%2093.0.exe from cache | ||
| + | Checking hash of <b class=HIC> | ||
| + | Extracting <b class=HIC> | ||
| + | Linking ~\scoop\apps\firefox\current => ~\scoop\apps\firefox\93.0 | ||
| + | Creating shim for ' | ||
| + | Creating shortcut for Firefox (firefox.exe) | ||
| + | <b class=GRN>' | ||
| + | </ | ||
| </ | </ | ||