diff .chezmoiscripts/run_onchange_after_16-install-mise-and-plugins.sh.tmpl @ 1093:9732db099471 draft

feat: enable dotfiles on aarch64/Fedora
author "Zeger Van de Vannet <zeger@vandevan.net>"
date Sun, 18 May 2025 16:28:58 +0200
parents 1fcc8b0ca8e2
children
line wrap: on
line diff
--- a/.chezmoiscripts/run_onchange_after_16-install-mise-and-plugins.sh.tmpl	Thu May 08 21:56:41 2025 +0200
+++ b/.chezmoiscripts/run_onchange_after_16-install-mise-and-plugins.sh.tmpl	Sun May 18 16:28:58 2025 +0200
@@ -1,13 +1,22 @@
-{{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}}
+{{ if (and (eq .chezmoi.os "linux") (or (eq .chezmoi.osRelease.name "Ubuntu" ) (eq .chezmoi.osRelease.name "Fedora Linux Asahi Remix"))) -}}
 #!/usr/bin/env bash
 
 set -xe
 
 # tool-versions hash: {{ include "dot_tool-versions" | sha256sum }}
+{{ $version := "2025.5.6" }}
+
+
+{{ $arch := "x64" }}
+{{ if (eq .chezmoi.arch "amd64") -}}
+{{ $arch = "x64" }}
+{{ else }}
+{{ $arch = "arm64" }}
+{{ end }}
 
 : "${XDG_CONFIG_HOME:=$HOME/.config}"
 RTX_BIN=$HOME/bin/mise
-curl -fsSL https://github.com/jdx/mise/releases/download/v2025.2.7/mise-v2025.2.7-linux-x64 | sudo install -m 755 /dev/stdin $RTX_BIN
+curl -fsSL https://github.com/jdx/mise/releases/download/v{{ $version }}/mise-v{{ $version }}-linux-{{ $arch }} | sudo install -m 755 /dev/stdin $RTX_BIN
 
 export PYTHON_CONFIGURE_OPTS="--enable-shared"
 $RTX_BIN install --verbose --yes