diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b20b1af..834065e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,8 +24,8 @@ jobs: main: app.py - uses: actions/upload-artifact@v3 with: - name: app - path: dist/app.bin + name: myapp + path: dist/myapp.bin if-no-files-found: error package: name: Package @@ -36,7 +36,7 @@ jobs: - uses: actions/download-artifact@v3 id: download with: - name: app + name: myapp - name: Build package uses: toltec-dev/build-action@v1 - name: Save packages diff --git a/app.py b/app.py deleted file mode 100644 index 4b9cc03..0000000 --- a/app.py +++ /dev/null @@ -1,3 +0,0 @@ -from app import main - -main() diff --git a/app/__init__.py b/app/__init__.py deleted file mode 100644 index 5e8e607..0000000 --- a/app/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -from carta import ReMarkable, Widget - - -def main(): - rm = ReMarkable() - - button = Widget( - id="but1", - typ="button", - value="Hello!", - x="50%", - y="50%", - ) - - rm.add(button) - rm.display() diff --git a/app/__main__.py b/app/__main__.py deleted file mode 100644 index bf2aad1..0000000 --- a/app/__main__.py +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python -from . import main - - -if __name__ == "__main__": - main() diff --git a/package b/package index 4ce9ba0..294c586 100644 --- a/package +++ b/package @@ -8,7 +8,7 @@ maintainer="My Name " license=MIT source=( - app.bin + myapp.bin myapp.oxide ) sha256sums=( @@ -17,6 +17,6 @@ sha256sums=( ) package() { - install -D -m 755 -t "$pkgdir"/opt/bin/myapp "$srcdir"/app.bin + install -D -m 755 -t "$pkgdir"/opt/bin/myapp "$srcdir"/myapp.bin install -D -m 655 -t "$pkgdir"/opt/usr/share/applications/ "$srcdir"/myapp.oxide }