Add script to package Linux binary into archive (#11165)

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-04-30 14:56:48 +02:00 committed by GitHub
parent 73d0600ad2
commit d743c19fe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 92 additions and 105 deletions

View file

@ -19,9 +19,12 @@ echo -e "# ###### CODE LICENSES ######\n" >> $OUTPUT_FILE
echo "Generating cargo licenses"
cargo about generate --fail -c script/licenses/zed-licenses.toml script/licenses/template.hbs.md >> $OUTPUT_FILE
sed -i '' 's/"/"/g' $OUTPUT_FILE
sed -i '' 's/'/'\''/g' $OUTPUT_FILE # The ` '\'' ` thing ends the string, appends a single quote, and re-opens the string
sed -i '' 's/=/=/g' $OUTPUT_FILE
sed -i '' 's/`/`/g' $OUTPUT_FILE
sed -i '' 's/&lt;/</g' $OUTPUT_FILE
sed -i '' 's/&gt;/>/g' $OUTPUT_FILE
sed -i.bak 's/&quot;/"/g' $OUTPUT_FILE
sed -i.bak 's/&#x27;/'\''/g' $OUTPUT_FILE # The ` '\'' ` thing ends the string, appends a single quote, and re-opens the string
sed -i.bak 's/&#x3D;/=/g' $OUTPUT_FILE
sed -i.bak 's/&#x60;/`/g' $OUTPUT_FILE
sed -i.bak 's/&lt;/</g' $OUTPUT_FILE
sed -i.bak 's/&gt;/>/g' $OUTPUT_FILE
rm -rf "${OUTPUT_FILE}.bak"