Skip to content

Commit

Permalink
Fix custom device release tag using 0.2.0 (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
DocMoebiuz authored Nov 30, 2023
1 parent ff05429 commit 227f7aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions get_CustomDevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
Import("env")

CUSTOMDEVICES_DIR = env.subst("$PROJECT_DIR/CustomDevices")
CUSTOMDEVICES_TAG = "0.2.0"

if not os.path.exists(CUSTOMDEVICES_DIR):
print ("Cloning Mobiflight-CustomDevices repo ... ")
env.Execute("git clone --depth 100 https://github.com/MobiFlight/MobiFlight-CustomDevices $PROJECT_DIR/CustomDevices")
env.Execute(f"git clone --depth 100 --branch {CUSTOMDEVICES_TAG} https://github.com/MobiFlight/MobiFlight-CustomDevices $PROJECT_DIR/CustomDevices")
else:
print ("Checking for Mobiflight-CustomDevices repo updates ... ")
env.Execute("git --work-tree=$PROJECT_DIR/CustomDevices --git-dir=$PROJECT_DIR/CustomDevices/.git pull origin main --depth 100")
env.Execute(f"git --work-tree=$PROJECT_DIR/CustomDevices --git-dir=$PROJECT_DIR/CustomDevices/.git pull origin {CUSTOMDEVICES_TAG} --depth 100")

0 comments on commit 227f7aa

Please sign in to comment.