Compare commits

..

No commits in common. "6a1251fa1e2c72fe58f059b19f71d4ccb2f4cb74" and "ee210934cd7e4ec73d0ecd6642b9b4ce42974079" have entirely different histories.

4 changed files with 44 additions and 9 deletions

View File

@ -3,7 +3,6 @@
become: yes become: yes
community.general.pacman: community.general.pacman:
name: name:
- helvum
- pavucontrol - pavucontrol
- pasystray - pasystray
- pipewire - pipewire

View File

@ -0,0 +1,26 @@
- name: checkout prusa profiles repo
git:
repo: "{{ prusa_slicer.repo }}"
dest: "{{ ansible_user_dir }}/.config/PrusaSlicer"
clone: yes
update: yes
- name: Install wrapper
become: yes
copy:
src: usr/local/bin/prusa-slicer.wrapper
dest: /usr/local/bin/prusa-slicer.wrapper
mode: '0755'
- name: clean link
become: yes
file:
path: "/usr/local/bin/prusa-slicer"
state: absent
- name: Create symbolic link to wrapper
become: yes
file:
src: "/usr/local/bin/prusa-slicer.wrapper"
dest: "/usr/local/bin/prusa-slicer"
state: link

View File

@ -1,12 +1,6 @@
- name: Install prusa-slicer [Ubuntu] - name: Install prusa-slicer [Ubuntu]
when: ansible_distribution == "Ubuntu" when: ansible_distribution == "Ubuntu"
block: block:
- name: Remove old version/symbolic link
become: yes
file:
path: "/usr/local/bin/prusa-slicer"
state: absent
- name: "Get PrusaSlicer version" - name: "Get PrusaSlicer version"
uri: uri:
url: https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest url: https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest
@ -18,7 +12,7 @@
when: ansible_architecture == "x86_64" when: ansible_architecture == "x86_64"
get_url: get_url:
url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*x64-GTK3.*AppImage'))[0] }}" url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*x64-GTK3.*AppImage'))[0] }}"
dest: /usr/local/bin/prusa-slicer dest: /usr/local/bin/prusa-slicer.real
mode: 0755 mode: 0755
- name: Install on arm64 - name: Install on arm64
@ -26,9 +20,22 @@
become: yes become: yes
get_url: get_url:
url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*armv7l-GTK2.*AppImage'))[0] }}" url: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*armv7l-GTK2.*AppImage'))[0] }}"
dest: /usr/local/bin/prusa-slicer dest: /usr/local/bin/prusa-slicer.real
mode: 0755 mode: 0755
- name: Clean symbolic link
become: yes
file:
path: "/usr/local/bin/prusa-slicer"
state: absent
- name: Create symbolic link to real app
become: yes
file:
src: "/usr/local/bin/prusa-slicer.real"
dest: "/usr/local/bin/prusa-slicer"
state: link
- name: Install prusa-slicer [Arch] - name: Install prusa-slicer [Arch]
when: ansible_distribution == "Archlinux" when: ansible_distribution == "Archlinux"
shell: shell:

View File

@ -1 +1,4 @@
- include_tasks: install-program.yml - include_tasks: install-program.yml
- include_tasks: config-repository.yml
when: ansible_distribution == "Ubuntu"