Fixing tar

This commit is contained in:
Zoe Roux 2021-04-05 20:52:36 +02:00
parent 418e32c3de
commit 94e70371e1

View File

@ -32,12 +32,13 @@ jobs:
- name: Build the app - name: Build the app
run: dotnet publish -r ${{matrix.runtime}} -c Release -o dist Kyoo run: dotnet publish -r ${{matrix.runtime}} -c Release -o dist Kyoo
- name: Compression output - name: Compression output
shell: bash
run: | run: |
assets=kyoo_${{matrix.artifact}} assets=kyoo_${{matrix.artifact}}
if [[ "${{runner.os}}" == "Windows" ]]; then if [[ "${{runner.os}}" == "Windows" ]]; then
7z a "$assets.zip" dist cd dist && 7z a "../$assets.zip"
else else
tar czf "$assets.tar.gz" dist tar -C dist -czf "$assets.tar.gz" .
fi fi
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
@ -58,9 +59,9 @@ jobs:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: kyoo_linux name: kyoo_linux
path: dist.tar.gz path: artifact
- name: Unzip the published files. - name: Unzip the published files.
run: mkdir dist && tar -C dist -xzf dist.tar.gz dist run: mkdir dist && tar -C dist -xzf artifact/kyoo_linux.tar.gz
- name: Create the package structure - name: Create the package structure
run: | run: |
mkdir -p pkg/usr/lib/ mkdir -p pkg/usr/lib/