Skip to content

Commit

Permalink
fix demo error
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Jul 10, 2024
1 parent 3f889b7 commit 79917b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/tools/install_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
def install_app(pkg_path):
if not os.path.exists(pkg_path):
raise Exception(f"package {pkg_path} not found")
cmd = f"/maixapp/apps/app_store/app_store install {pkg_path}"
cmd = f"chmod +x /maixapp/apps/app_store/app_store && /maixapp/apps/app_store/app_store install {pkg_path}"
err_code = os.system(cmd)
if err_code != 0:
print("[ERROR] Install failed, error code:", err_code)
Expand Down
2 changes: 1 addition & 1 deletion examples/tools/install_runtime.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

def install_runtime():
cmd = f"/maixapp/apps/app_store/settings install_runtime"
cmd = f"chmod +x /maixapp/apps/settings/settings && /maixapp/apps/settings/settings install_runtime"
err_code = os.system(cmd)
if err_code != 0:
print("[ERROR] Install failed, error code:", err_code)
Expand Down
7 changes: 4 additions & 3 deletions projects/app_face_tracking/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ icon: assets/face_tracking.json
desc: Face tracking with MaixCAM and gimbal.
desc[zh]: 使用 MaixCAM 和云台进行人脸跟踪。
files:
- app.yaml: app.yaml
- assets: assets
- README.md: README.md
- app.yaml
- assets
- README.md
- face_tracking

0 comments on commit 79917b1

Please sign in to comment.