add superslicer, improve github release downloading, and some small edits

This commit is contained in:
Tyler Starr 2022-12-29 19:11:38 -08:00
parent 1b6f987b49
commit 6d42425385
12 changed files with 48 additions and 12 deletions

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=SuperSlicer
Comment=SuperSlicer
Exec=/usr/local/bin/SuperSlicer
Terminal=false

View File

@ -1,4 +1,4 @@
- name: Install desktop dnf packages
- name: Install desktop void packages
xbps:
name:
- xorg # X.org meta-package
@ -27,7 +27,6 @@
- xsel # Command-line getting and setting the contents of the X selection
- clipmenu # Clipboard management using dmenu
- nerd-fonts # Iconic font aggregator, collection and patcher
- PrusaSlicer # PrusaSlicer-2.4.2_2 G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
state: present
become: true
@ -47,4 +46,3 @@
- com.github.tchx84.Flatseal # Manage Flatpak permissions
state: present
become: true

View File

@ -1,4 +1,4 @@
- name: Install development dnf packages
- name: Install development void packages
xbps:
name:
- python3 # Python programming language (3.11 series)

View File

@ -0,0 +1,2 @@
- import_tasks: packages.yml
tags: ["packages"]

View File

@ -0,0 +1,8 @@
- name: Install engineering void packages
xbps:
name:
- freecad # General purpose 3D CAD modeler
state: present
become: true
- include_tasks: superslicer.yml # PrusaSlicer fork (which is a slic3r fork)

View File

@ -0,0 +1,6 @@
- name: Install SuperSlicer
include_tasks: ../include/download-github-bin.yml
loop:
- user: supermerill
repo: SuperSlicer
regex: "SuperSlicer-ubuntu_18.04-[0-9]"

View File

@ -1,4 +1,4 @@
- name: Install gaming dnf packages
- name: Install gaming void packages
xbps:
name:
- libdrm-32bit # Userspace interface to kernel DRM services (32bit)

View File

@ -4,9 +4,9 @@
return_content: true
register: repo_latest
- name: Install {{ item.repo }} - {{ repo_latest.json.tag_name }}
- name: Install archived {{ item.repo }} - {{ repo_latest.json.tag_name }}
loop: "{{ repo_latest.json.assets }}"
when: "item.match in asset.name"
when: "asset.name is regex(item.regex)"
unarchive:
src: "{{ asset.browser_download_url }}"
dest: /usr/local/bin

View File

@ -0,0 +1,16 @@
- name: Get {{ item.repo }} release information
uri:
url: https://api.github.com/repos/{{ item.user }}/{{ item.repo }}/releases/latest
return_content: true
register: repo_latest
- name: Install un-archived {{ item.repo }} - {{ repo_latest.json.tag_name }}
loop: "{{ repo_latest.json.assets }}"
when: "asset.name is regex(item.regex)"
get_url:
url: "{{ asset.browser_download_url }}"
dest: /usr/local/bin/{{ item.repo }}
mode: 0775
loop_control:
loop_var: asset
become: true

View File

@ -1,4 +1,4 @@
- name: Install system repos
- name: Install system void repos
xbps:
name:
- void-repo-multilib # Void Linux drop-in file for the multilib repository
@ -7,7 +7,7 @@
state: present
become: true
- name: Install system dnf packages
- name: Install system void packages
xbps:
name:
- git # Fast Version Control System

View File

@ -1,4 +1,4 @@
- name: Install terminal dnf packages
- name: Install terminal void packages
xbps:
name:
- neovim # Vim-fork focused on extensibility and agility

View File

@ -1,6 +1,6 @@
- name: Install taskwarrior-tui
include_tasks: ../include/download-github.yml
include_tasks: ../include/download-github-archive.yml
loop:
- user: kdheepak
repo: taskwarrior-tui
match: unknown-linux-gnu.tar.gz
regex: unknown-linux-gnu.tar.gz