Commit 96385985 authored by Arturo Hernandez's avatar Arturo Hernandez

working appimage (require more tests)

parent c6843834
...@@ -140,3 +140,4 @@ AGETIC_MST_installer.exe ...@@ -140,3 +140,4 @@ AGETIC_MST_installer.exe
python-3.6.8/ python-3.6.8/
agetic_mst/ agetic_mst/
out/
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
## Requisitos ## Requisitos
- Python 3 con pip - Python 3 con pip
- pcscd - pcsc-lite (pcscd libpcsclite1)
...@@ -13,11 +13,39 @@ ...@@ -13,11 +13,39 @@
sudo apt install pcscd pcsc-tools python3-pip python3-pyscard sudo apt install pcscd pcsc-tools python3-pip python3-pyscard
# pip3 install pyscard #instalado con apt # pip3 install pyscard #instalado con apt
pip3 install tornado pip3 install tornado
pip3 install pystray
sudo apt install python3-wxgtk4* sudo apt install python3-wxgtk4*
``` ```
Genere o descargue los certificados para levantar en https en `cert/`
para ejecutar el servicio tornado en 8000:
# ```sh
python3 src/main.py
```
Para ejecutar con wx trayicon:
```sh
python3 src/trayicon.py
```
puede ejecutar este icono tambien con `MST.desktop` desde la carpeta del repositorio.
## Docker
[readme](docker/README.md)
[download](https://intranet.agetic.gob.bo/nube/s/A7QZ8sddCzMcjtP)
## AppImage
WIP [readme](appimage/README.md)
[download](https://intranet.agetic.gob.bo/nube/s/A7QZ8sddCzMcjtP)
### Windows (win8 & up)
[readme](win/README.md)
[download](https://intranet.agetic.gob.bo/nube/s/A7QZ8sddCzMcjtP)
\ No newline at end of file
#!/usr/bin/env bash
SRC=$(cd $(dirname "$0"); cd ..; pwd)
cd $SRC
# git clone https://github.com/AppImage/pkg2appimage.git ~/opt/pkg2appimage
bash -ex ~/opt/pkg2appimage/pkg2appimage appimage/mst.yml
...@@ -11,9 +11,11 @@ ingredients: ...@@ -11,9 +11,11 @@ ingredients:
- python3-pyscard - python3-pyscard
- python3-tornado - python3-tornado
- python3-wxgtk3.0 - python3-wxgtk3.0
- libgtk3.0-dev
script: script:
- wget -c https://gitlab.agetic.gob.bo/agetic/microservicio_tarjetas/-/archive/master/microservicio_tarjetas-master.zip - wget -c https://gitlab.agetic.gob.bo/agetic/microservicio_tarjetas/-/archive/master/microservicio_tarjetas-master.zip
- unzip microservicio_tarjetas-master.zip - unzip microservicio_tarjetas-master.zip
- wget -c https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/wxPython-4.0.7.post1-cp36-cp36m-linux_x86_64.whl
script: script:
- cat > agetic_mst.desktop <<EOF - cat > agetic_mst.desktop <<EOF
...@@ -21,11 +23,16 @@ script: ...@@ -21,11 +23,16 @@ script:
- Type=Application - Type=Application
- Name=Microservicio de Tarjetas RFID - Name=Microservicio de Tarjetas RFID
- Icon=agetic_mst - Icon=agetic_mst
- Exec=python3 -B usr/bin/src/traymenu.py - Exec=usr/bin/python3 -B bin/src/traymenu.py
- Categories=Utility; - Categories=Utility;
- EOF - EOF
- virtualenv --python=python3 usr
- usr/bin/pip3 install tornado
- usr/bin/pip3 install pyscard
- usr/bin/pip3 install ../wxPython-4.0.7.post1-cp36-cp36m-linux_x86_64.whl
- cp -r ../microservicio_tarjetas-master/* usr/bin/ - cp -r ../microservicio_tarjetas-master/* usr/bin/
- ls usr/bin - mkdir usr/bin/cert/
- cp -r ../../cert/* usr/bin/cert/
- cp usr/bin/src/www/icon.png usr/share/icons/hicolor/24x24/agetic_mst.png - cp usr/bin/src/www/icon.png usr/share/icons/hicolor/24x24/agetic_mst.png
- cp usr/share/icons/hicolor/24x24/agetic_mst.png . - cp usr/share/icons/hicolor/24x24/agetic_mst.png .
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment