diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 93b6c32..9338783 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -62,7 +62,7 @@ jobs: for file in ./bin/*; do echo "Uploading $file to release..." curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "Content-Type: application/zip" \ + -H "Content-Type: application/octet-stream" \ --data-binary @"$file" \ "https://uploads.github.com/repos/oneclickvirt/backtrace/releases/$release_id/assets?name=$(basename "$file")" rm -rf $file diff --git a/backtrace_install.sh b/backtrace_install.sh index 487788d..6ab21c2 100644 --- a/backtrace_install.sh +++ b/backtrace_install.sh @@ -6,5 +6,6 @@ if [ "$arch" = "x86_64" ]; then else wget -q -O backtrace https://github.com/oneclickvirt/backtrace/releases/output/backtrace-linux-arm64 fi +chmod 777 backtrace mv backtrace /usr/bin/ backtrace \ No newline at end of file