Files
smart-serow/scripts/__pycache__/deploy.cpython-39.pyc

19 lines
2.7 KiB
Plaintext
Raw Normal View History

2026-01-25 18:47:35 +09:00
a
w<>ti\
<00>@s<>dZddlZddlZddlZddlZddlZddlmZee<08>j <09>
<EFBFBD>Z e j Z e dZ e ddddd d
d Zdeeeejd <0A>dd<0F>Zed<10>dd<12>Zdeed<14>dd<16>Zdd<18>Zedkr<>e<17>dS)zfDeploy script for Smart Serow Flutter UI.
Pushes build bundle to Pi and optionally restarts service.
<EFBFBD>N)<01>Pathzdeploy_target.json<6F>pi<70>ui<75>build<6C>elinux<75>arm64<36>release<73>bundleT)<03>cmd<6D>check<63>returncKs*tdd<02>|<00><01><00><02>tj|fd|i|<02><01>S)zRun a command.u<20> r )<04>print<6E>join<69>
subprocess<EFBFBD>run)r
r <00>kwargs<67>r<00>(/mnt/j/dev/smart-serow/scripts/deploy.pyrsr)r cCs^t<00><01>s(tdt<00><00><02>td<02>t<03>d<03>tt<00><01>}t<06>|<00>Wd<00>S1sP0YdS)z!Load deploy target configuration.zERROR: Config file not found: z,Create it based on deploy_target.sample.json<6F>N)<08> CONFIG_FILE<4C>existsr<00>sys<79>exit<69>open<65>json<6F>load)<01>frrr<00> load_configs 

rF)<02>restartr c Cs,t<00>}|d}|d}|d}|d}|<02>d|<03><00>}td<06>td|<06>d|<04><00><04>td t<02><00><02>t<02><03>srtd
<EFBFBD>d St<01>td <0C>td ddt<02>d<10>|<06>d|<04>d<11>g<05>|r<>t<01>td|<05><00><02>td|d|<05><00>g<03>t<05>d<15>td|d|<05>d<17>gd d<18>n2t<01>td<19>td|<06>d|<05>d<1C><05>t<01>td<1D>dS)z&Deploy to Pi. Returns True on success.<2E>user<65>host<73> remote_path<74> service_name<6D>@z=== Smart Serow Deploy ===zTarget: <20>:zSource: z5ERROR: Build directory not found. Run build.py first.FzSyncing files...<2E>rsyncz-avzz--delete<74>/z/bundle/zRestarting service: Zsshzsudo systemctl restart <20>zsystemctl status z --no-pager)r z)Deploy complete. To restart service, run:z ssh z 'sudo systemctl restart <20>'z&Or run this script with --restart flagT)rr<00> BUILD_DIRrr<00>time<6D>sleep)rZconfigZpi_userZpi_hostr"r#Z
ssh_targetrrr<00>deploy&s><0E>
r-cCsHtjdd<02>}|jddddd<07>|<00><03>}t|jd<08>}t<06>|r>d nd
<EFBFBD>dS) NzDeploy Smart Serow to Pi)<01> descriptionz --restartz-r<>
store_truez(Restart the systemd service after deploy)<02>action<6F>help)rrr)<08>argparse<73>ArgumentParser<65> add_argument<6E>
parse_argsr-rrr)<03>parser<65>args<67>successrrr<00>mainSs <02> r9<00>__main__)T)F)<19>__doc__r2rrrr+<00>pathlibr<00>__file__<5F>parent<6E>resolve<76>
SCRIPT_DIR<EFBFBD> PROJECT_ROOTrr*<00>list<73>str<74>bool<6F>CompletedProcessr<00>dictrr-r9<00>__name__rrrr<00><module>s    -