Code: Select all
- shared-modules/glu/glu-9.0.0.json # TODO: remove with next runtime
I submit the issue as soon as I know that the downloaded file works as expected.
[1] https://raw.githubusercontent.com/Grumb ... 9.0.0.json
Code: Select all
- shared-modules/glu/glu-9.0.0.json # TODO: remove with next runtime
Code: Select all
$ cat ./build_FreeCAD.sh
#!/bin/bash
git clone https://github.com/flathub/org.freecadweb.FreeCAD.git
cd org.freecadweb.FreeCAD
rmdir shared-modules/ && git rm shared-modules/ && git submodule add https://github.com/flathub/shared-modules.git
flatpak-builder --force-clean test-build org.freecadweb.FreeCAD.yaml
@mdhill would you be willing to setup a demo repo that builds v0.18 and then we could see if there would be someone interested in maintaining it. We could possibly then clone it under github.com/FreeCAD org just like our homebrew tap ?mdhill wrote: ↑Sun Nov 11, 2018 1:54 pm Flathub will only host the stable version; a nightly version would have to be self-hosted. See earlier comment:
https://forum.freecadweb.org/viewtopic. ... 20#p264047
With a few changes to the manifest, you can build FreeCAD from git master locally (the way I'm running v0.18 now). I think it takes about 90 minutes to build on my laptop.
Code: Select all
- name: freecad
buildsystem: cmake-ninja
builddir: true
build-options:
env:
PYTHONPATH: /app/lib/python2.7/site-packages
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DCMAKE_INSTALL_PREFIX=/app/freecad
- -DBUILD_QT5=ON
- -DCMAKE_INCLUDE_PATH=/app/include
- -DCMAKE_LIBRARY_PATH=/app/lib
- -DCMAKE_CXX_FLAGS='-L/app/lib -pthread'
post-install:
- rm -rf /app/{include,lib/cmake,lib/mkspecs,lib/pkgconfig} # io.qt.qtwebkit.BaseApp
- desktop-file-edit --set-key=Exec --set-value='freecad %F' --set-icon=org.freecadweb.FreeCAD --remove-key=Path ../src/XDGData/org.freecadweb.FreeCAD.desktop
- install -Dm644 ../src/XDGData/org.freecadweb.FreeCAD.desktop /app/share/applications/org.freecadweb.FreeCAD.desktop
- install -Dm644 ../src/XDGData/org.freecadweb.FreeCAD.xml /app/share/mime/packages/org.freecadweb.FreeCAD.xml
- install -Dm644 ../src/XDGData/org.freecadweb.FreeCAD.svg /app/share/icons/hicolor/scalable/apps/org.freecadweb.FreeCAD.svg
- install -Dm644 -t /app/share/metainfo ../src/XDGData/org.freecadweb.FreeCAD.appdata.xml
- ln -s /app/freecad/bin/FreeCAD /app/bin/FreeCAD
- ln -s /app/freecad/bin/FreeCADCmd /app/bin/FreeCADCmd
- install -D ../freecad.sh /app/bin/freecad
cleanup:
- /freecad/doc
sources:
- type: script
dest-filename: freecad.sh
commands:
- exec FreeCAD -u ${XDG_CONFIG_HOME}/FreeCAD/user.conf -s ${XDG_CONFIG_HOME}/FreeCAD/system.cfg "$@"
- type: git
url: https://github.com/FreeCAD/FreeCAD.git
- type: shell
commands:
- sed -i 's|/usr|/app|g' cMake/FindOpenCasCade.cmake src/Gui/GraphvizView.cpp