tignear / choco-cica Goto Github PK
View Code? Open in Web Editor NEWCica chocolatey package
Home Page: https://chocolatey.org/packages/cica/
Cica chocolatey package
Home Page: https://chocolatey.org/packages/cica/
I wrote the script referring to https://chocolatey.org/packages/fonts-ricty-diminished
I received the following comment.
Pauby (reviewer) on 16 Jul 2019 08:25:28 +00:00:
Hi,
My apologies as I should have brought this up last time!
In your chocolateyInstall.ps1 and chocolateyUninstall.ps1 you are calling powershell.exe -f with the Add-Font or Remove-Font scripts. Is there a reason you are doing this over just calling the scripts directly?
You are effectively launching PowerShell inside PowerShell which doesn't make a lot of sense
but there could be a reason for it?
I thought it was the best, so I decided to fix it.
Rewrote chocolateyUninstall.ps1 as follows.
$ErrorActionPreference = 'Continue';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fonts = Join-Path $toolsDir "fonts"
$removeFontScript=Join-Path $toolsDir "Remove-Font.ps1";
Get-ChildItem $fonts |ForEach-Object {&($removeFontScript) ([System.IO.Path]::GetFileName($_))}
However, this does not work well with the following output.
Chocolatey v0.10.15
Uninstalling the following packages:
cica
cica v5.0.1
Font: Cica-Bold (TrueType)
An error occured removing $'Cica-Bold.ttf'
You cannot call a method on a null-valued expression.
Font: Cica-BoldItalic (TrueType)
Font 'Cica-BoldItalic.ttf' removed successfully
Font: Cica-Regular (TrueType)
Font 'Cica-Regular.ttf' removed successfully
Font: Cica-RegularItalic (TrueType)
Font 'Cica-RegularItalic.ttf' removed successfully
'C:\Windows\Fonts\COPYRIGHT.txt' not found
'C:\Windows\Fonts\LICENSE.txt' not found
Skipping auto uninstaller - No registry snapshot.
cica has been successfully uninstalled.
Chocolatey uninstalled 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.