File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ tmp.jar
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ SCRIPT=$( realpath " $0 " )
4+ SCRIPT_PATH=$( dirname " $SCRIPT " )
5+ MAPPINGS_PATH=" $( dirname " $SCRIPT_PATH " ) "
6+
7+ version=" $1 "
8+ filePath=" $MAPPINGS_PATH /arch_$version .tiny"
9+ tmpPath=" $SCRIPT_PATH /tmp.jar"
10+
11+ echo " tiny 2 0 official named" > " $filePath "
12+ echo " Fetching https://maven.architectury.dev/dev/architectury/architectury/$version /architectury-$version .jar ..."
13+ curl " https://maven.architectury.dev/dev/architectury/architectury/$version /architectury-$version .jar" -o " $tmpPath "
14+
15+ jar tf " $tmpPath " | while IFS= read -r line; do
16+ if [[ $line == * .class ]]; then
17+ noClass=" ${line// \. class/ } "
18+ remapped=" ${noClass// dev\/ / remapped\/ } "
19+ echo -e " c\t$noClass \t$remapped " >> " $filePath "
20+ fi
21+ done
22+
23+ rm " $tmpPath "
You can’t perform that action at this time.
0 commit comments