Compare commits
No commits in common. "6a1251fa1e2c72fe58f059b19f71d4ccb2f4cb74" and "ee210934cd7e4ec73d0ecd6642b9b4ce42974079" have entirely different histories.
6a1251fa1e
...
ee210934cd
@ -3,7 +3,6 @@
|
||||
become: yes
|
||||
community.general.pacman:
|
||||
name:
|
||||
- helvum
|
||||
- pavucontrol
|
||||
- pasystray
|
||||
- pipewire
|
||||
|
26
roles/prusa-slicer/tasks/config-repository.yml
Normal file
26
roles/prusa-slicer/tasks/config-repository.yml
Normal 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
|
@ -1,12 +1,6 @@
|
||||
- name: Install prusa-slicer [Ubuntu]
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
block:
|
||||
- name: Remove old version/symbolic link
|
||||
become: yes
|
||||
file:
|
||||
path: "/usr/local/bin/prusa-slicer"
|
||||
state: absent
|
||||
|
||||
- name: "Get PrusaSlicer version"
|
||||
uri:
|
||||
url: https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest
|
||||
@ -18,7 +12,7 @@
|
||||
when: ansible_architecture == "x86_64"
|
||||
get_url:
|
||||
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
|
||||
|
||||
- name: Install on arm64
|
||||
@ -26,9 +20,22 @@
|
||||
become: yes
|
||||
get_url:
|
||||
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
|
||||
|
||||
- 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]
|
||||
when: ansible_distribution == "Archlinux"
|
||||
shell:
|
||||
|
@ -1 +1,4 @@
|
||||
- include_tasks: install-program.yml
|
||||
|
||||
- include_tasks: config-repository.yml
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
|
Loading…
Reference in New Issue
Block a user