Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions bucket/freecad.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,34 @@
"description": "A free and open-source multi-platform parametric 3D modeler.",
"homepage": "https://www.freecadweb.org",
"license": "LGPL-2.0-or-later",
"notes": [
"Scoop persists data since version 1.0.0. You may need to move data by yourself.",
"Before: '$Env:APPDATA\\FreeCAD'",
"After : '$persist_dir\\freecad\\_userdata'"
],
"architecture": {
"64bit": {
"url": "https://github.com/FreeCAD/FreeCAD/releases/download/1.0.0/FreeCAD_1.0.0-conda-Windows-x86_64-py311.7z",
"hash": "c32c43897172c2669ade854a4e71b9e158e7e86dfaf728e2aba0b6e3104347ae"
}
},
"pre_install": "pushd $dir ; mv */* . ; rm FreeCAD_* ; popd",
"post_install": [
"if ($global) { $scope = 'Machine' } else { $scope = 'User' }",
"if (!$Env:FREECAD_USER_HOME) { [Environment]::SetEnvironmentVariable('FREECAD_USER_HOME', \"$persist_dir\\_userdata\", $scope) }"
],
"bin": "bin\\FreeCADCmd.exe",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the env_set field work for this case?

https://github.com/ScoopInstaller/Scoop/wiki/App-Manifests#optional-properties

env_set: Sets one or more environment variables for the user (or system if --global is used) (example).

Extras/bucket/jjui.json

Lines 17 to 19 in 7a0aa04

"env_set": {
"JJUI_CONFIG_DIR": "$dir\\config"
},

Copy link
Copy Markdown
Contributor Author

@Ra2-IFV Ra2-IFV Dec 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If scoop checks for existing ENV then yes, scoop doesn't do this as far as I know

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See also #15326

"shortcuts": [
[
"bin\\FreeCAD.exe",
"FreeCAD"
]
],
"persist": "_userdata",
"post_uninstall": [
"if ($global) { $scope = 'Machine' } else { $scope = 'User' }",
"if ($Env:FREECAD_USER_HOME -eq \"$persist_dir\\_userdata\") { [Environment]::SetEnvironmentVariable('FREECAD_USER_HOME', [NullString]::Value, $scope) }"
],
"checkver": {
"url": "https://api.github.com/repositories/5736080/releases",
"regex": "FreeCAD_([\\d.]+)-conda-Windows-x86_64-(?<suffix>[\\w.-]+)\\.7z"
Expand Down