Skip to content

Commit

Permalink
attempt to correct freecad appimage name
Browse files Browse the repository at this point in the history
  • Loading branch information
capsulecorplab committed Dec 10, 2024
1 parent 7d260cf commit 83ee24a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@

vars:
freecad_version: "1.0.0"
freecad_appimage: "FreeCAD-{{ freecad_version }}-conda-Linux-x86_64-py311.AppImage"

tasks:
- name: Install kmod with apt
Expand All @@ -639,7 +640,7 @@
- name: Download FreeCAD {{ freecad_version }} source tarball
shell: wget https://github.com/FreeCAD/FreeCAD/archive/refs/tags/{{ freecad_version }}.tar.gz -O /home/kasm-default-profile/install_files/freecad-{{ freecad_version }}.tar.gz
- name: Download FreeCAD {{ freecad_version }} AppImage
shell: wget https://github.com/FreeCAD/FreeCAD/releases/download/{{ freecad_version }}/FreeCAD-{{ freecad_version }}-Linux-x86_64.AppImage -O /home/kasm-default-profile/install_files/FreeCAD-{{ freecad_version }}-Linux-x86_64.AppImage
shell: wget https://github.com/FreeCAD/FreeCAD/releases/download/{{ freecad_version }}/{{ freecad_appimage }} -O /home/kasm-default-profile/install_files/{{ freecad_appimage }}
- name: Unarchive FreeCAD {{ freecad_version }} source tarball
unarchive:
src: /home/kasm-default-profile/install_files/freecad-{{ freecad_version }}.tar.gz
Expand All @@ -655,14 +656,14 @@
remote_src: yes
- name: Install FreeCAD {{ freecad_version }}
copy:
src: /home/kasm-default-profile/install_files/FreeCAD-{{ freecad_version }}-Linux-x86_64.AppImage
dest: /opt/FreeCAD/FreeCAD-{{ freecad_version }}-Linux-x86_64.AppImage
src: /home/kasm-default-profile/install_files/{{ freecad_appimage }}
dest: /opt/FreeCAD/{{ freecad_appimage }}
remote_src: yes
owner: root
group: root
mode: '0755'
- name: Create symlink for FreeCAD AppImage in /usr/local/bin
shell: ln -srv /opt/FreeCAD/FreeCAD-{{ freecad_version }}-Linux-x86_64.AppImage /usr/local/bin/freecad
shell: ln -srv /opt/FreeCAD/{{ freecad_appimage }} /usr/local/bin/freecad
- name: Configure FreeCAD desktop shortcut
shell: echo "[Desktop Entry]\nName=FreeCAD\nGenericName=FreeCAD\nExec=/usr/local/bin/freecad\nIcon=/opt/FreeCAD/freecad-icon-16.png\nTerminal=false\nType=Application\nStartupNotify=false\nCategories=Application;Development;" > /usr/share/applications/freecad.desktop

Expand Down

0 comments on commit 83ee24a

Please sign in to comment.