Skip to content

Commit 2dfd3d4

Browse files
committed
fix: fix progressbar not working in lip
1 parent b1117c6 commit 2dfd3d4

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.4] - 2025-05-07
9+
10+
### Changed
11+
12+
- Fix progressbar not working in lip
13+
814
## [1.1.3] - 2025-03-16
915

1016
### Changed

downloader.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func DownloadFile(url, dest string) error {
4343
}
4444

4545
bar := pb.Full.Start64(resp.ContentLength)
46+
bar.Set(pb.ReturnSymbol, "\r").Set(pb.Terminal, true)
4647
barReader := bar.NewProxyReader(resp.Body)
4748

4849
_, err = io.Copy(out, barReader)

installer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func UnzipPackage(file, dest string) error {
2828
defer zipFile.Close()
2929

3030
bar := pb.StartNew(len(zipFile.File))
31+
bar.Set(pb.ReturnSymbol, "\r").Set(pb.Terminal, true)
3132
os.MkdirAll(dest, 0644)
3233

3334
for _, f := range zipFile.File {

tooth.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"format_version": 3,
33
"format_uuid": "289f771f-2c9a-4d73-9f3f-8492495a924d",
44
"tooth": "github.com/LiteLDev/bdsdown",
5-
"version": "1.1.3",
5+
"version": "1.1.4",
66
"info": {
77
"name": "bdsdown",
88
"description": "Downloader for Minecraft BDS",

0 commit comments

Comments
 (0)