move script to .ci/generate-qt-ts.sh
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh -ex
|
||||||
|
|
||||||
|
mkdir -p ../translations
|
||||||
|
|
||||||
|
LUPDATE_PATH=$(find /usr -name lupdate -type f 2>/dev/null | head -n 1)
|
||||||
|
if [ -z "$LUPDATE_PATH" ]; then
|
||||||
|
echo "Error: lupdate not found!"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "lupdate found at: $LUPDATE_PATH"
|
||||||
|
$LUPDATE_PATH -recursive . -ts ../translations/rpcs3_template.ts
|
||||||
|
sed -i 's|filename="\.\./|filename="./|g' ../translations/rpcs3_template.ts
|
||||||
|
fi
|
||||||
@@ -24,16 +24,7 @@ jobs:
|
|||||||
- name: Generate .ts file using lupdate (Qt)
|
- name: Generate .ts file using lupdate (Qt)
|
||||||
working-directory: rpcs3
|
working-directory: rpcs3
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ../translations
|
../.ci/generate-qt-ts.sh
|
||||||
LUPDATE_PATH=$(find /usr -name lupdate -type f 2>/dev/null | head -n 1)
|
|
||||||
if [ -z "$LUPDATE_PATH" ]; then
|
|
||||||
echo "Error: lupdate not found!"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "lupdate found at: $LUPDATE_PATH"
|
|
||||||
$LUPDATE_PATH -recursive . -ts ../translations/rpcs3_template.ts
|
|
||||||
sed -i 's|filename="\.\./|filename="./|g' ../translations/rpcs3_template.ts
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Upload translation template
|
- name: Upload translation template
|
||||||
uses: actions/upload-artifact@main
|
uses: actions/upload-artifact@main
|
||||||
|
|||||||
Reference in New Issue
Block a user