mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-12 22:33:15 +00:00
Updated msg for Autosize on Linux
This commit is contained in:
@@ -42,13 +42,18 @@ if (($IsLinux -or $IsMacOS) -or $env:NoAutoSize) {
|
|||||||
catch {
|
catch {
|
||||||
$env:NoAutoSize = $true
|
$env:NoAutoSize = $true
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
Write-Warning -Message ('ImportExcel Module Cannot Autosize. Please run the following command to install dependencies:' + [environment]::newline +
|
$msg = @"
|
||||||
'"sudo apt-get install -y --no-install-recommends libgdiplus libc6-dev"')
|
ImportExcel Module Cannot Autosize. Please run the following command to install dependencies:
|
||||||
|
apt-get -y update && apt-get install -y --no-install-recommends libgdiplus libc6-dev
|
||||||
|
"@
|
||||||
|
Write-Warning -Message $msg
|
||||||
}
|
}
|
||||||
if ($IsMacOS) {
|
if ($IsMacOS) {
|
||||||
Write-Warning -Message ('ImportExcel Module Cannot Autosize. Please run the following command to install dependencies:' + [environment]::newline +
|
$msg = @"
|
||||||
'"brew install mono-libgdiplus"')
|
ImportExcel Module Cannot Autosize. Please run the following command to install dependencies:
|
||||||
}
|
brew install mono-libgdiplus
|
||||||
|
"@
|
||||||
|
Write-Warning -Message $msg
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
$ExcelPackage | Close-ExcelPackage -NoSave
|
$ExcelPackage | Close-ExcelPackage -NoSave
|
||||||
|
|||||||
Reference in New Issue
Block a user