diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cbac2ae..204dcfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,9 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Create git_hash + run: echo ${{ github.sha }} | tee ./resources/git_hash + - name: Move linux binaries run: | mkdir -p ./exclude/firmware ./exclude/lib ./exclude/tools diff --git a/restore.sh b/restore.sh index 1fa86ae..4b05963 100755 --- a/restore.sh +++ b/restore.sh @@ -65,7 +65,7 @@ ExitWin() { Main() { local Selection=() - + clear Echo "******* iOS-OTA-Downgrader *******" Echo " - Downgrader script by LukeZGD - " @@ -80,6 +80,14 @@ Main() { "If resources folder is present try removing spaces from path/folder name" fi + if [[ -d .git ]]; then + Echo "Version: $(git rev-parse HEAD)" + elif [[ -e resources/git_hash ]]; then + Echo "Version: $(cat resources/git_hash)" + else + Echo "Version: Unknown" + fi + SetToolPaths if [[ $? != 0 ]]; then Error "Setting tool paths failed. Your copy of iOS-OTA-Downgrader seems to be incomplete."