Skip to content

Commit

Permalink
AU: 1 updated - freecad
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed Mar 15, 2020
1 parent a855eb4 commit 13d3ce4
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 120 deletions.
10 changes: 5 additions & 5 deletions automatic/freecad/freecad.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"stable": "0.0",
"portable": "0.0",
"dev": "0.0"
}
{
"stable": "0.18.4.980",
"portable": "0.18.4.980",
"dev": "0.19.0.20052-dev"
}
97 changes: 49 additions & 48 deletions automatic/freecad/freecad.nuspec
Original file line number Diff line number Diff line change
@@ -1,48 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>freecad</id>
<version>0.0</version>
<title>FreeCAD</title>
<owners>chocolatey,purity</owners>
<authors>Jürgen Riegel</authors>
<licenseUrl>http://www.freecadweb.org/wiki/index.php?title=Licence</licenseUrl>
<projectUrl>http://www.freecadweb.org/</projectUrl>
<projectSourceUrl>https://github.com/FreeCAD/FreeCAD/</projectSourceUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-coreteampackages@edba4a5849ff756e767cba86641bea97ff5721fe/icons/freecad.svg</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<bugTrackerUrl>https://www.freecadweb.org/tracker/my_view_page.php</bugTrackerUrl>
<!-- Do not touch the description here in the nuspec file. Description is imported during update from the Readme.md file -->
<description><![CDATA[FreeCAD is a general purpose feature-based, parametric 3D modeler for CAD, MCAD, CAx, CAE and PLM, aimed directly at mechanical engineering and product design but also fits a wider range of uses in engineering, such as architecture or other engineering specialties. It is 100 % Open Source and extremely modular, allowing for very advanced extension and customization.
FreeCAD is based on OpenCasCade, a powerful geometry kernel, features an Open Inventor-compliant 3D scene representation model provided by the Coin 3D library, and a broad Python API. The interface is built with Qt. FreeCAD runs exactly the same way on Windows, Mac OSX and Linux platforms.
## Features
- A full parametric model,and modular architecture that allows plugin extensions (modules) to add functionality to the core application.
- Import/export to standard formats such as STEP, IGES, OBJ, STL, DXF, SVG, STL, DAE, IFC or OFF, NASTRAN, VRML in addition to FreeCAD's native FCStd file format.
- A Robot simulation module that allows you to study robot movements in a graphical environment.
- A technical drawing module with options for detail views, cross sectional views, dimensioning and others, allowing you to generate 2D views of existing 3D models.
- A Rendering module that can export 3D objects for rendering with external renderers.
- A Path module dedicated to mechanical machining for Computer Aided Manufacturing (CAM).
## Package parameters
#### Used only for Portable or Pre Releases Currently
- `/InstallDir` - This is the location inside the Chocolatey lib folder specific to this package.
- `/Arguments` - This will allow you to specify any of the FreeCAD command line arguements.
- `/NoShortcut` - This will not set a Shortcut on the Desktop.
- `/WindowStyle` - The normal window setting for most Applications is as a Window. Maximised Window would be 3.
Example: `choco install freecad --params "/InstallDir:'C:\FreeCAD' /NoShortcut"`]]></description>
<summary>A parametric 3D CAD modeler</summary>
<releaseNotes>https://www.freecadweb.org/wiki/Release_notes_0.18</releaseNotes>
<tags>freecad 3d cad modeling engineering admin</tags>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-coreteampackages/tree/master/automatic/freecad</packageSourceUrl>
<dependencies>
<dependency id="chocolatey-core.extension" version="1.3.3" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>freecad</id>
<version>0.19.0.20052-dev</version>
<title>FreeCAD</title>
<owners>chocolatey,purity</owners>
<authors>Jürgen Riegel</authors>
<licenseUrl>http://www.freecadweb.org/wiki/index.php?title=Licence</licenseUrl>
<projectUrl>http://www.freecadweb.org/</projectUrl>
<projectSourceUrl>https://github.com/FreeCAD/FreeCAD/</projectSourceUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-coreteampackages@edba4a5849ff756e767cba86641bea97ff5721fe/icons/freecad.svg</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<bugTrackerUrl>https://www.freecadweb.org/tracker/my_view_page.php</bugTrackerUrl>
<!-- Do not touch the description here in the nuspec file. Description is imported during update from the Readme.md file -->
<description><![CDATA[FreeCAD is a general purpose feature-based, parametric 3D modeler for CAD, MCAD, CAx, CAE and PLM, aimed directly at mechanical engineering and product design but also fits a wider range of uses in engineering, such as architecture or other engineering specialties. It is 100 % Open Source and extremely modular, allowing for very advanced extension and customization.
FreeCAD is based on OpenCasCade, a powerful geometry kernel, features an Open Inventor-compliant 3D scene representation model provided by the Coin 3D library, and a broad Python API. The interface is built with Qt. FreeCAD runs exactly the same way on Windows, Mac OSX and Linux platforms.
## Features
- A full parametric model,and modular architecture that allows plugin extensions (modules) to add functionality to the core application.
- Import/export to standard formats such as STEP, IGES, OBJ, STL, DXF, SVG, STL, DAE, IFC or OFF, NASTRAN, VRML in addition to FreeCAD's native FCStd file format.
- A Robot simulation module that allows you to study robot movements in a graphical environment.
- A technical drawing module with options for detail views, cross sectional views, dimensioning and others, allowing you to generate 2D views of existing 3D models.
- A Rendering module that can export 3D objects for rendering with external renderers.
- A Path module dedicated to mechanical machining for Computer Aided Manufacturing (CAM).
## Package parameters
#### Used only for Portable or Pre Releases Currently
- `/InstallDir` - This is the location inside the Chocolatey lib folder specific to this package.
- `/Arguments` - This will allow you to specify any of the FreeCAD command line arguements.
- `/NoShortcut` - This will not set a Shortcut on the Desktop.
- `/WindowStyle` - The normal window setting for most Applications is as a Window. Maximised Window would be 3.
Example: `choco install freecad --params "/InstallDir:'C:\FreeCAD' /NoShortcut"`
]]></description>
<summary>A parametric 3D CAD modeler</summary>
<releaseNotes>https://www.freecadweb.org/wiki/Release_notes_0.19</releaseNotes>
<tags>freecad 3d cad modeling engineering admin</tags>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-coreteampackages/tree/master/automatic/freecad</packageSourceUrl>
<dependencies>
<dependency id="chocolatey-core.extension" version="1.3.3" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
66 changes: 33 additions & 33 deletions automatic/freecad/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
$ErrorActionPreference = 'Stop';

if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\helper.ps1"

$packageArgs = @{
packageName = ''
fileType = ''
url = ''
url64 = ''
softwareName = ''
checksum = ''
checksumType = ''
checksum64 = ''
checksumType64 = ''
silentArgs = '/S'
validExitCodes = @(0)
}

if ( $packageArgs.filetype -eq '7z' ) {
# Checking for Package Parameters
$pp = ( Get-UserPackageParams -scrawl )
if ($packageArgs.url64 -match "Conda") { $packageArgs.Remove("url"); $packageArgs.Remove("checksum"); $packageArgs.Remove("checksumType"); }
if ($pp.InstallDir) { $packageArgs.Add( "UnzipLocation", $pp.InstallDir ) }
Install-ChocolateyZipPackage @packageArgs
if ($pp.Shortcut) { $pp.Remove("Shortcut"); Install-ChocolateyShortcut @pp }
$files = get-childitem $pp.WorkingDirectory -Exclude $packageArgs.softwareName -include *.exe -recurse
foreach ($file in $files) {
New-Item "$file.ignore" -type file -force | Out-Null # Generate an ignore file(s)
}
} else {
Install-ChocolateyPackage @packageArgs
}
$ErrorActionPreference = 'Stop';

if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\helper.ps1"

$packageArgs = @{
packageName = 'freecad'
fileType = '7z'
url = ''
url64 = 'https://github.com/FreeCAD/FreeCAD/releases/download/0.19_pre/FreeCAD_0.19.20052-Win-Conda_vc14.x-x86_64.7z'
softwareName = 'FreeCAD'
checksum = ''
checksumType = ''
checksum64 = 'BFFC8DE26370DC5549F6E3430807962256CCDC9FBDB78A7E227E9166B335D9FB'
checksumType64 = 'sha256'
silentArgs = '/S'
validExitCodes = @(0)
}

if ( $packageArgs.filetype -eq '7z' ) {
# Checking for Package Parameters
$pp = ( Get-UserPackageParams -scrawl )
if ($packageArgs.url64 -match "Conda") { $packageArgs.Remove("url"); $packageArgs.Remove("checksum"); $packageArgs.Remove("checksumType"); }
if ($pp.InstallDir) { $packageArgs.Add( "UnzipLocation", $pp.InstallDir ) }
Install-ChocolateyZipPackage @packageArgs
if ($pp.Shortcut) { $pp.Remove("Shortcut"); Install-ChocolateyShortcut @pp }
$files = get-childitem $pp.WorkingDirectory -Exclude $packageArgs.softwareName -include *.exe -recurse
foreach ($file in $files) {
New-Item "$file.ignore" -type file -force | Out-Null # Generate an ignore file(s)
}
} else {
Install-ChocolateyPackage @packageArgs
}
68 changes: 34 additions & 34 deletions automatic/freecad/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
$ErrorActionPreference = 'Stop';

if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }

$packageArgs = @{
packageName = ''
softwareName = ''
fileType = ''
silentArgs = '/S'
validExitCodes= @(@(0))
}

if ( $packageArgs.fileType -match 'exe' ) {
$uninstalled = $false
[array]$key = Get-UninstallRegistryKey @packageArgs
if ($key.Count -eq 1) {
$key | ForEach-Object {
$packageArgs['file'] = "$($_.UninstallString)"
Uninstall-ChocolateyPackage @packageArgs
}
} elseif ($key.Count -eq 0) {
Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
Write-Warning "$($key.Count) matches found!"
Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
Write-Warning "Please alert the package maintainer that the following keys were matched:"
$key | ForEach-Object { Write-Warning "- $($_.DisplayName)" }
}
} else {
$pp = ( Get-Content "$PSScriptRoot\pp.json" ) | ConvertFrom-Json
if ($pp.ShortcutFilePath) { Remove-Item -Path $pp.ShortcutFilePath }
if ($pp.InstallDir) { Remove-Item -Path $pp.InstallDir -ErrorAction SilentlyContinue -Recurse -Force }
Write-Information "All files Removed"
}
$ErrorActionPreference = 'Stop';

if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }

$packageArgs = @{
packageName = 'freecad'
softwareName = 'FreeCAD'
fileType = '7z'
silentArgs = '/S'
validExitCodes= @(@(0))
}

if ( $packageArgs.fileType -match 'exe' ) {
$uninstalled = $false
[array]$key = Get-UninstallRegistryKey @packageArgs
if ($key.Count -eq 1) {
$key | ForEach-Object {
$packageArgs['file'] = "$($_.UninstallString)"
Uninstall-ChocolateyPackage @packageArgs
}
} elseif ($key.Count -eq 0) {
Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
Write-Warning "$($key.Count) matches found!"
Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
Write-Warning "Please alert the package maintainer that the following keys were matched:"
$key | ForEach-Object { Write-Warning "- $($_.DisplayName)" }
}
} else {
$pp = ( Get-Content "$PSScriptRoot\pp.json" ) | ConvertFrom-Json
if ($pp.ShortcutFilePath) { Remove-Item -Path $pp.ShortcutFilePath }
if ($pp.InstallDir) { Remove-Item -Path $pp.InstallDir -ErrorAction SilentlyContinue -Recurse -Force }
Write-Information "All files Removed"
}

0 comments on commit 13d3ce4

Please sign in to comment.