add spec
This commit is contained in:
parent
04741a6c76
commit
3ec309662a
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,11 +1,6 @@
|
||||
#
|
||||
config/cert/
|
||||
test_modules/
|
||||
config/SSL/fullchain.pem
|
||||
config/SSL/privkey.pem
|
||||
logs/
|
||||
SECRET_KEY.key
|
||||
car_ui.spec
|
||||
dev_mode_enable
|
||||
reset
|
||||
|
||||
|
||||
44
car_ui.spec
Normal file
44
car_ui.spec
Normal file
@ -0,0 +1,44 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
|
||||
a = Analysis(
|
||||
['main.py'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
noarchive=False,
|
||||
optimize=0,
|
||||
)
|
||||
pyz = PYZ(a.pure)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
[],
|
||||
exclude_binaries=True,
|
||||
name='car_ui',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
console=False,
|
||||
disable_windowed_traceback=False,
|
||||
argv_emulation=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
)
|
||||
coll = COLLECT(
|
||||
exe,
|
||||
a.binaries,
|
||||
a.datas,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
name='car_ui',
|
||||
)
|
||||
11
system_configs/experimental/install.md
Normal file
11
system_configs/experimental/install.md
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
# IK
|
||||
```bash
|
||||
sudo apt install ir-keytable lirc v4l-utils -y
|
||||
sudo nano /boot/firmware/config.txt
|
||||
dtoverlay=gpio-ir,gpio_pin=17
|
||||
|
||||
sudo ir-keytable -p nec,rc5
|
||||
ir-keytable (Enabled kernel protocols: lirc nec rc-5)
|
||||
sudo ir-keytable -t
|
||||
```
|
||||
@ -23,29 +23,6 @@ sudo cp -r car_ui/* /opt/car_ui/
|
||||
sudo chown -R cheykrym:cheykrym /opt/car_ui
|
||||
/opt/car_ui/car_ui
|
||||
|
||||
# сервис
|
||||
sudo cp car-ui.service /etc/systemd/system/car-ui.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl start car-ui
|
||||
sudo systemctl enable car-ui
|
||||
sudo systemctl set-default multi-user.target
|
||||
sudo systemctl disable lightdm
|
||||
sudo systemctl stop lightdm
|
||||
|
||||
# вкл
|
||||
sudo systemctl start display-manager
|
||||
|
||||
sudo systemctl set-default graphical.target
|
||||
sudo systemctl enable lightdm
|
||||
sudo systemctl start lightdm
|
||||
|
||||
|
||||
# блютуз разблокировка
|
||||
sudo cp bt-unblock.service /etc/systemd/system/bt-unblock.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable bt-unblock.service
|
||||
sudo systemctl start bt-unblock.service
|
||||
|
||||
|
||||
# ярлык
|
||||
# 1
|
||||
@ -61,11 +38,3 @@ chmod +x ~/.local/share/applications/car-ui.desktop
|
||||
|
||||
|
||||
|
||||
# IK
|
||||
sudo apt install ir-keytable lirc v4l-utils -y
|
||||
sudo nano /boot/firmware/config.txt
|
||||
dtoverlay=gpio-ir,gpio_pin=17
|
||||
|
||||
sudo ir-keytable -p nec,rc5
|
||||
ir-keytable (Enabled kernel protocols: lirc nec rc-5)
|
||||
sudo ir-keytable -t
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user