result = res_pack(info.res_dir, info.res_index, info.res_data,info.res_delfile,info.res_rmdir)
if not result:
sys.exit("[ERROR] resource file pack failed!!!")
- if os.path.exists(info.res_data):
- image_list.append("=".join([info.res_index, "res_index"]))
- image_list.append("=".join([info.res_data, "res_data"]))
else:
print("res dir not exist " + info.res_dir)
info.res_dir = None #仅删除
result = res_pack(info.res_dir, info.res_index, info.res_data,info.res_delfile,info.res_rmdir)
- if os.path.exists(info.res_data):
- image_list.append("=".join([info.res_index, "res_index"]))
- image_list.append("=".join([info.res_data, "res_data"]))
+ if not result:
+ sys.exit("[ERROR] resource file pack failed!!!")
+ if os.path.exists(info.res_data):
+ image_list.append("=".join([info.res_index, "res_index"]))
+ image_list.append("=".join([info.res_data, "res_data"]))
# 镜像签名
# image_list.append("=".join([info.dsp_overlay_sign, "dsp_overlay_sign"]))
new_image = "|".join(image_list)
+ print("get_new_image done")
return new_image
uint32_t yf_volume_percent[YF_VOLUMES_NUM] = {100};
#else
#define YF_VOLUMES_NUM 4
-#define YF_NAME_STRS "/user/system/", "/user/update/", "/user/music/", "/user/"
+#define YF_NAME_STRS "/system/", "/update/", "/music/", "/user/"
uint32_t yf_volume_percent[YF_VOLUMES_NUM] = { 10, 10, 10, 70 };
// uint32_t yf_volume_percent[YF_VOLUMES_NUM] = { 1, 1, 1, 97 };
#endif