Comments (7)
@luzpaz The new version released, You can see the docs here. But before you start using the new version I think we might need to change the conda recipe because the project was renamed. But Github takes care of all redirects but still some build specific stuff breaks.
Here is how you do it,
# v2.x code
# Get constants from plugin itself.
Action_CheckForUpdate = updater.getConstant("Action::CheckForUpdate")
Action_UpdateWGUI = updater.getConstant("Action::UpdateWithGUI") # Start updater with gui
def handleFinished(info, action):
if action == Action_Update:
print("New version Details:: {}".format(info))
app.quit()
elif action == Action_CheckForUpdate:
if info["UpdateAvailable"].toBool():
# updater.setGuiFlag(updater.getConstant("GuiFlag::Default"))
# You can customize the GUI to some extent with flags. See docs.
updater.start(Action_UpdateWGUI)
else:
print("You already have the new version")
# Connect
updater.finished.connect(handleFinished)
# Start the update process
updater.start(Action_CheckForUpdate)
If you want BitTorrent Support then FreeCAD need to use https://github.com/antony-jr/MakeAppImageTorrent to make torrent file at build time and upload it to the releases along with the .zsync file. Now you need to add -DDECENTRALIZED_UPDATE_ENABLED=ON
flag to cmake to enable building QAppImageUpdate with torrent support. Also you need to build libtorrent at build time. ping me if you want help.
Then you just need to replace Action::UpdateWithGUI
with Action::UpdateWithGUIAndTorrent
.
from freecad-bundle.
@luzpaz Actually there is a inbuilt GUI that is not used. It's the same one used in the unofficial updater. It shows you release notes too and a simple progress.
from freecad-bundle.
@antony-jr how does one enable it ?
from freecad-bundle.
Oops, Actually it's only usable in plugin in v2.x. (Which will be released soon)
from freecad-bundle.
@looooo can we try this?
from freecad-bundle.
@luzpaz The PR is ready, Once the review is done, we can get user friendly GUI for updating looooo/freecad.appimage_updater#5
from freecad-bundle.
@luzpaz We can close this.
from freecad-bundle.
Related Issues (20)
- macOS arm64 weekly build does not contain Info.plist HOT 2
- Alert: .FCStd#` backup format is deprecated from 0.21 and may be removed in future versions. Please use `.FCBak` instead. HOT 3
- Multimaterial and override align give wrong result
- Freecad Weekly does not have the correct AppImage launcher anymore. HOT 8
- [Bug] On MacOS, FreeCAD 0.22.0dev crash when using Transform tool HOT 1
- Missing FreeCADGui.dll in windows conda build HOT 4
- The preferences window doesn't fit properly in 1366 x 768 displays HOT 4
- [Bug] On Sketcher Workbench, the tools Polyline and B-spline are not disabled when pressing esc key. HOT 4
- 0.22.0dev error DirectWrite: CreateFontFaceFromHDC() failed HOT 1
- Assembly4 > mirroed object > techdraw plot >>> bad mirror on page HOT 1
- Assembly4>Animator>Save complains OpenCV not installed - actual problem is pillow HOT 2
- Material workbench content is missing in recent Windows weekly builds HOT 3
- Cannot create a projection HOT 2
- Weekly build macOS ARM - Replace uses of missing font family "Courier" HOT 4
- PolarPattern cannot be applied to Additive Helix HOT 2
- Cannot open my files anymore HOT 7
- External geometry is not removed HOT 1
- Development Version FreeCAD_weekly-builds-36391-2024-03-11-conda-Windows-x86_64-py310.7z Problems When Rows Deleted in Spreadsheet HOT 6
- Can't run in Arch Linux - Appimage - FreeCAD_weekly-builds-36480-2024-03-18-conda-Linux-x86_64-py311.AppImage HOT 2
- Windows 11 Threat blocked: FreeCAD_weekly-builds-36596-2024-03-25-conda-Windows-x86_64-py311.7z HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecad-bundle.