mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-17 08:56:22 +01:00
Get version
This commit is contained in:
parent
a8d019c451
commit
9ef6df9c29
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -6,6 +6,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Create git_hash
|
||||||
|
run: echo ${{ github.sha }} | tee ./resources/git_hash
|
||||||
|
|
||||||
- name: Move linux binaries
|
- name: Move linux binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./exclude/firmware ./exclude/lib ./exclude/tools
|
mkdir -p ./exclude/firmware ./exclude/lib ./exclude/tools
|
||||||
|
@ -80,6 +80,14 @@ Main() {
|
|||||||
"If resources folder is present try removing spaces from path/folder name"
|
"If resources folder is present try removing spaces from path/folder name"
|
||||||
fi
|
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
|
SetToolPaths
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
Error "Setting tool paths failed. Your copy of iOS-OTA-Downgrader seems to be incomplete."
|
Error "Setting tool paths failed. Your copy of iOS-OTA-Downgrader seems to be incomplete."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user