-
Notifications
You must be signed in to change notification settings - Fork 119
Chocolatey
nmaya edited this page May 6, 2026
·
5 revisions
Tera Term 5.4.0 以降は x.x.x 形式にしたので Chocolatey の最新バージョンを使用できる。*
(1) branchの作成
git switch master
git pull --rebase
git checkout -b teraterm-5.5.2
(2) teraterm/teraterm.nuspec を変更
- バージョン: <version>
- 変更履歴: <releaseNotes>
- 今回のリリースのURLを記述する
- リリースには変更履歴のサマリーがあり、さらに about/history.html へのリンクがある
- 今回のリリースのURLを記述する
- copyright year: <copyright>
- その年の最初のリリース時のみ
(3) teraterm/tools/chocolateyinstall.ps1 を変更
- $url
- $checksum
- $url64
- $checksum64
(4) パッケージを作成
cd teraterm
choco pack
teraterm\teraterm5.5.5.2.nupkg が出力される
(5) インストールをテスト
// 更新インストールの確認
sudo choco upgrade teraterm5 -s . --version 5.5.2 -y
C:\ProgramData\Chocolatey\logs\choco.summary.log を確認する。
Tera Term の起動を確認する。
// アンインストールと新規インストールの確認
sudo choco uninstall teraterm5 -y
sudo choco install teraterm5 -s . -y
(6) 作成したパッケージを chocolatey へ push
choco push teraterm5.5.5.2.nupkg --source="'https://push.chocolatey.org/'"
(7) commit & push
git add -u
git commit -m "Tera Term 5.5.2"
git tag v5.5.2
git push origin teraterm-5.5.2
git push origin --tags
git switch master
git merge teraterm-5.5.2
git push
master が進んでいないので、このマージは Fast-forward になります。
Tera Term 5.3 まで
Chocolatey 1.4.0 を用いる。
Chocolatey 2.0.0 以降はバージョン番号が正規化されるので、5.0 が 5.0.0 にされてしまうため。
- Chocolatey 1.4.0 のインストール
https://chocolatey.org/install https://docs.chocolatey.org/en-us/choco/setup#installing-a-particular-version-of-chocolatey
PowerShell を管理者権限で起動する
$env:chocolateyVersion = '1.4.0'
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- API キーの設定
https://docs.chocolatey.org/en-us/create/commands/api-key
choco apikey add -k <your key here> -s https://push.chocolatey.org/
cf. https://github.com/TeraTermProject/osdn-download/issues/26#issuecomment-1766765781