Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed May 3, 2024
1 parent 7e659b8 commit 87ca0f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import argparse
import os
from pathlib import Path

if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Auto-Twrp-Builder")
parser.add_argument('-i', '--input', type=str, default='', help='Recovery/Boot Image')
Expand All @@ -17,5 +18,6 @@
with open(os.getenv('GITHUB_OUTPUT', ''), 'w') as f:
f.write(f'DEVICE_NAME={device_tree.device_info.manufacturer}\n')
f.write(f'MAKEFILE_NAME=omni_{device_tree.device_info.codename}\n')
f.write(f'DEVICE_PATH={os.path.basename(args.output) / device_tree.device_info.manufacturer / device_tree.device_info.codename}')
f.write(
f'DEVICE_PATH={os.path.basename(args.output) + os.sep + device_tree.device_info.manufacturer + os.sep + device_tree.device_info.codename}')
device_tree.dump_to_folder(Path(args.output))

0 comments on commit 87ca0f1

Please sign in to comment.