Skip to content

Vasak-OS/application-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application Template

This is a template for a simple application for VSK Apps. It is based on the Python, Vue.js and TypeScript.

Dependencies

Application template depends on the following packages:

Start Application Template

To start Application, run the following steps:

  1. Clone the repository
git clone git@github.com:Vasak-OS/application-template.git
  1. Move to the directory
cd application-template
  1. Install dependencies and Build UI
cd ui/
yarn install
yarn build
cd ..
  1. Start Application
python application-template.py --webEngineArgs --remote-debugging-port=3030 --remote-allow-origins=http://127.0.0.1:3030 # --debug
python application-template.py # normal mode

PKGBUILD Template

# Maintainer: Your Name <your_email@domain>

pkgname=application-template
pkgver=0.0.1
pkgrel=1
pkgdesc="PKGBUILD template for VSK Apps"
url="https://github.com/Vasak-OS/$pkgname/"
depends=(
    'python-libvasak'
    'libvasak-ui'
)
makedepends=(
    'nodejs'
)
license=('GPL')
arch=('x86_64')
md5sums=('68c81dfe3a33b44ea3c88451fccdc159')
source=("$url/archive/refs/tags/$pkgver.tar.gz")

package() {
    cd $pkgname-$pkgver
    install -dm755 "${pkgdir}/usr/share/${pkgname}/"
    install -d "${pkgdir}/bin"
    cd "${pkgdir}/usr/share/${pkgname}/ui" && npm i && npm run build
    cp -r "${srcdir}/${pkgname}-${pkgver}/src/*" "${pkgdir}/usr/share/${pkgname}/src/"
    cp -r "${srcdir}/${pkgname}-${pkgver}/ui/dist/*" "${pkgdir}/usr/share/${pkgname}/ui/dist/"
    cp "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/share/${pkgname}/"
    cp "${srcdir}/${pkgname}-${pkgver}/${pkgname}.py" "${pkgdir}/usr/share/${pkgname}/"
    
    chmod a+x "${pkgdir}/usr/share/${pkgname}/${pkgname}"
    ln -sf "/usr/share/${pkgname}/${pkgname}" "${pkgdir}/bin/${pkgname}"
}

Contributors