Skip to content

Releases: nacos-group/nacos-setup

1.0.2

02 Apr 07:18
f754757

Choose a tag to compare

upgrade version 1.0.2 (#28)

Change-Id: I1ed1f290856fbc0fc8774db95e3dcb8884be8e95

0.0.5

19 Mar 13:33
f04eb85

Choose a tag to compare

support db conf (#10)

* Bump version to 0.0.4 for release

Change-Id: Ia4daaf8f2603bdd3d38333882929b77c287018ee
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(embedded): Embed version management in nacos-installer.sh for standalone operation

Change-Id: If82c2236c20b6aa1b7d3cd6920ea179cbd22790b
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(installer): Fix set -e compatibility issues in embedded version management

Change-Id: I1e0b903ffc75ccfc7b859f154eb5787e2b88698c
Co-developed-by: Qoder <noreply@qoder.com>

* fix(installer): Make nacos-installer.ps1 fully self-contained

Embed version management code directly into the installer script to enable
true standalone online installation without requiring lib/versions.ps1 dependency.

Changes:
- Embed Fetch-Versions, Get-Version, and Get-AllVersions functions
- Include fallback versions (CLI=0.0.8, Setup=0.0.3, Server=3.2.0-BETA)
- Support dynamic version fetching from https://download.nacos.io/versions
- Maintain backward compatibility with existing functionality

Now supports true one-line installation:
  iwr -UseBasicParsing https://nacos.io/nacos-installer.ps1 | iex

Fixes issue where installer failed with 'Get-AllVersions not found' error.

* fix(installer): Fix version fetch variable scoping and add logging

- Move tempFile creation inside Fetch-Versions function (was undefined in job scope)
- Remove duplicate tempFile creation in Get-Version
- Add finally block for proper cleanup
- Add logging to indicate if remote versions were fetched or fallback used
- Improve job cleanup in finally block

Now properly reports:
- 'Remote versions fetched successfully' when versions URL is accessible
- 'Could not fetch remote versions, using fallback versions' when unavailable

* fix(installer): Handle version fetch errors gracefully

- Change ErrorActionPreference from Stop to Continue to prevent script exit
- Increase version fetch timeout from 1s to 5s for reliability
- Add try-catch around Initialize-Versions to handle network errors
- Script now continues with fallback versions even if remote fetch fails

Fixes issue where installer would exit immediately on network errors.

* fix(installer): Simplify version fetch - remove Start-Job dependency

- Replace Start-Job with direct synchronous Invoke-WebRequest
- Start-Job can be restricted in some environments
- Add detailed error logging to diagnose network issues
- Add success/warning icons for better visibility
- Only mark versions as fetched if at least one value was parsed

This should improve reliability in environments where background jobs are restricted.

* fix(installer): Use Invoke-RestMethod for version fetch (match bash curl behavior)

* fix(installer): Simplify Invoke-RestMethod call - remove line continuations

* fix(installer): Fix version variable scoping - ensure versions are properly set

* fix: Add Referer header to downloads (match bash script behavior)

- Add Referer header to Download-File function in both nacos-installer.ps1 and lib/download.ps1
- Required by Aliyun OSS CDN to prevent 403/NoSuchKey errors
- Matches bash script: curl -H 'Referer: https://nacos.io/download/nacos-server/?spm=nacos_install'

* fix: Never exit on errors - always continue and print to terminal

- Replace all 'throw' with 'Write-ErrorMsg + return'
- Set ErrorActionPreference/WarningPreference/VerbosePreference to Continue
- Refresh PATH to include nacos-setup directory in current session
- Script will never exit early, always report errors and continue

* fix: Final fixes for terminal output and PATH refresh

* fix: Reduce version fetch timeout to prevent hanging

- Reduce timeout from 5s to 2-3s for faster fallback
- Use Invoke-WebRequest instead of Invoke-RestMethod (more reliable)
- Add better error messages
- Ensure script never hangs on network issues

* feat: Add extensive debug logging to help diagnose hangs

- Add [DEBUG] messages in Fetch-Versions, Get-AllVersions, Download-File
- Show timing information for all network requests
- Display exception details and types
- Show exactly where script hangs for easier troubleshooting

* Fix(Windows): Fix iex hanging issue in nacos-installer.ps1 with async version fetch and shorter timeouts

Change-Id: I492ac7e4d896eae0892976182af747638b882eb0
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Add pause at end of installer to prevent terminal from closing immediately

Change-Id: Ib07e420dc44374009ecc0e273e64187b4cde8971
Co-developed-by: Qoder <noreply@qoder.com>

* Improve(Windows): Add detailed step-by-step logging to nacos-installer.ps1

Change-Id: I43da33d7a5843571801323679a01c5de4ebf033a
Co-developed-by: Qoder <noreply@qoder.com>

* Improve(Windows): Replace DEBUG logs with INFO/SUCCESS/WARN in nacos-installer.ps1

Change-Id: I860f788a91e5de1a156db664eb9fb07c85475c8a
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Skip ReadKey pause when running via pipeline/iex to prevent input stream blocking

Change-Id: Ieff2bca06c41967b591941f475ead6c8fa85e7db
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Add async timeout handling to prevent iex hanging on WMI and web requests

Change-Id: I7aee9f8acf5a87cd0277a0cb6c43be24a047424d
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Disable progress bar to prevent iwr from hanging in pipeline mode

Change-Id: I29537c4bf23d1b36b874db5abe18181ceabed298
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Restore progress bar in script for package download UX

Change-Id: Id0fb02aa384e8842f08e752fd895253d2368de35
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Fix Get-Date arithmetic compatibility for older PowerShell versions

Change-Id: Icf4631992de1c35936e46efaa4314ca71d2109fb
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Handle byte array response content in Fetch-Versions for proper version parsing

Change-Id: If1ac3dcec7b1e283708b214136db5491dc736b8b
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Remove Start-Job from Fetch-Versions and WMI query to fix iex pipeline hanging

Change-Id: I9109e2f0048778edfae4b5e8b8337067c782788d
Co-developed-by: Qoder <noreply@qoder.com>

* Improve(Windows): Use curl as preferred download tool for better timeout control

Change-Id: Id84c1bed051949f8f62f0fe862f8f29c4529909f
Co-developed-by: Qoder <noreply@qoder.com>

* Improve(Windows): Add clear logging for download tool selection (curl vs Invoke-WebRequest)

Change-Id: Ic6a718c0839f1f9685903c6bc364e3707ca77d80
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Remove Get-WmiObject call that may cause hanging in iex pipeline mode

Change-Id: Ib66d8911f77f4ab1195bf2971f948e831b4a5b89
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(Windows): Auto-detect pipeline mode and disable progress bar to prevent iwr|iex hanging

Change-Id: Ib07a53afc80832a1b5390d0b82e4850053a16731
Co-developed-by: Qoder <noreply@qoder.com>

* Debug(Windows): Add more early logging to diagnose iwr|iex hanging issue

Change-Id: I3acc819e2864f5d2279afc2365a2f549740826d1
Co-developed-by: Qoder <noreply@qoder.com>

* refactor: simplify windows nacos-installer.ps1

- 简化版本管理逻辑,Fetch-Versions 只执行一次,失败回退默认版本
- 支持 -v/--version 参数指定安装版本,两遍解析确保顺序无关
- Banner 移至脚本最顶部
- 去掉 Press any key to exit 交互提示
- 统一使用 $Global:NacosSetupVersion/NacosCliVersion
- 清理冗余日志和调试代码

Change-Id: I6ce6d02a4813a76545a6d97baf1272f98262adcf

* fix encoding

Change-Id: I777c529fb1781f3473c803d4df82a2a479f0834b

---------

Co-authored-by: Nacos Setup Dev <dev@nacos.io>

0.0.4

18 Mar 10:07
e7d3bcd

Choose a tag to compare

fix windows install version (#9)

* Bump version to 0.0.4 for release

Change-Id: Ia4daaf8f2603bdd3d38333882929b77c287018ee
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(embedded): Embed version management in nacos-installer.sh for standalone operation

Change-Id: If82c2236c20b6aa1b7d3cd6920ea179cbd22790b
Co-developed-by: Qoder <noreply@qoder.com>

* Fix(installer): Fix set -e compatibility issues in embedded version management

Change-Id: I1e0b903ffc75ccfc7b859f154eb5787e2b88698c
Co-developed-by: Qoder <noreply@qoder.com>

* fix(installer): Make nacos-installer.ps1 fully self-contained

Embed version management code directly into the installer script to enable
true standalone online installation without requiring lib/versions.ps1 dependency.

Changes:
- Embed Fetch-Versions, Get-Version, and Get-AllVersions functions
- Include fallback versions (CLI=0.0.8, Setup=0.0.3, Server=3.2.0-BETA)
- Support dynamic version fetching from https://download.nacos.io/versions
- Maintain backward compatibility with existing functionality

Now supports true one-line installation:
  iwr -UseBasicParsing https://nacos.io/nacos-installer.ps1 | iex

Fixes issue where installer failed with 'Get-AllVersions not found' error.

* fix(installer): Fix version fetch variable scoping and add logging

- Move tempFile creation inside Fetch-Versions function (was undefined in job scope)
- Remove duplicate tempFile creation in Get-Version
- Add finally block for proper cleanup
- Add logging to indicate if remote versions were fetched or fallback used
- Improve job cleanup in finally block

Now properly reports:
- 'Remote versions fetched successfully' when versions URL is accessible
- 'Could not fetch remote versions, using fallback versions' when unavailable

---------

Co-authored-by: Nacos Setup Dev <dev@nacos.io>