You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Move from MANIFEST.MF to MANIFEST.JSON
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "BTC Ticker",
|
||||
"publisher": "ACME Inc",
|
||||
"short_description": "Bitcoin Price Ticker",
|
||||
"long_description": "Uses a websocket to show the current price of Bitcoin in US Dollar.",
|
||||
"icon_url": "http://demo.lnpiggy.com:2121/apps/com.example.btcticker_0.0.1.mpk_icon_64x64.png",
|
||||
"download_url": "http://demo.lnpiggy.com:2121/apps/com.example.btcticker_0.0.1.mpk",
|
||||
"fullname": "com.example.btcticker",
|
||||
"version": "0.0.1",
|
||||
"entrypoint": "assets/bitcoin_price.py"
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Name: BTCTicker
|
||||
Start-Script: assets/bitcoin_price.py
|
||||
Version: 0.0.1
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "Camera Tester",
|
||||
"publisher": "ACME Inc",
|
||||
"short_description": "Simple test of the camera",
|
||||
"long_description": "A simple test of the camera makes it possible to validate the hardware.",
|
||||
"icon_url": "http://demo.lnpiggy.com:2121/apps/com.example.camtest_0.0.2.mpk_icon_64x64.png",
|
||||
"download_url": "http://demo.lnpiggy.com:2121/apps/com.example.camtest_0.0.2.mpk",
|
||||
"fullname": "com.example.camtest",
|
||||
"version": "0.0.2",
|
||||
"entrypoint": "assets/camtest.py"
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Name: CamTest
|
||||
Start-Script: assets/camtest.py
|
||||
Version: 0.0.2
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "CPU Tester",
|
||||
"publisher": "ACME Inc",
|
||||
"short_description": "Testing the CPU speed",
|
||||
"long_description": "Experimentally determines how many idle loops and sha256-hashing loops the CPU can perform per second.",
|
||||
"icon_url": "http://demo.lnpiggy.com:2121/apps/com.example.cputest_0.0.1.mpk_icon_64x64.png",
|
||||
"download_url": "http://demo.lnpiggy.com:2121/apps/com.example.cputest_0.0.1.mpk",
|
||||
"fullname": "com.example.cputest",
|
||||
"version": "0.0.1",
|
||||
"entrypoint": "assets/cputest.py"
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Name: CPUTest
|
||||
Start-Script: assets/cputest.py
|
||||
Version: 0.0.1
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "HelloWorld",
|
||||
"publisher": "ACME Inc",
|
||||
"short_description": "Minimal app",
|
||||
"long_description": "Demonstrates the simplest app.",
|
||||
"icon_url": "http://demo.lnpiggy.com:2121/apps/com.example.helloworld_0.0.1.mpk_icon_64x64.png",
|
||||
"download_url": "http://demo.lnpiggy.com:2121/apps/com.example.helloworld_0.0.1.mpk",
|
||||
"fullname": "com.example.memtest",
|
||||
"version": "0.0.1",
|
||||
"entrypoint": "assets/hello.py"
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Name: HelloWorld
|
||||
Start-Script: assets/hello.py
|
||||
Version: 0.0.1
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "IMU Tester",
|
||||
"publisher": "ACME Inc",
|
||||
"short_description": "Test the Inertial Measurement Unit",
|
||||
"long_description": "It is always good to make sure the accelerometer is working properly. How else can you measure acceleration and position?",
|
||||
"icon_url": "http://demo.lnpiggy.com:2121/apps/com.example.imutest_0.0.1.mpk_icon_64x64.png",
|
||||
"download_url": "http://demo.lnpiggy.com:2121/apps/com.example.imutest_0.0.1.mpk",
|
||||
"fullname": "com.example.imutest",
|
||||
"version": "0.0.1",
|
||||
"entrypoint": "assets/imutest.py"
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Name: IMUTest
|
||||
Start-Script: assets/imutest.py
|
||||
Version: 0.0.1
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "Animation Tester",
|
||||
"publisher": "ACME Inc",
|
||||
"short_description": "Testing on-display animations",
|
||||
"long_description": "Stress testing multiple concurrent animations on the display by adding more and more spinners",
|
||||
"icon_url": "http://demo.lnpiggy.com:2121/apps/com.example.lvgltest_0.0.1.mpk_icon_64x64.png",
|
||||
"download_url": "http://demo.lnpiggy.com:2121/apps/com.example.lvgltest_0.0.1.mpk",
|
||||
"fullname": "com.example.lvgltest",
|
||||
"version": "0.0.1",
|
||||
"entrypoint": "assets/lvgltest.py"
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Name: LVGLTest
|
||||
Start-Script: assets/lvgltest.py
|
||||
Version: 0.0.1
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Memory Tester",
|
||||
"publisher": "ACME Inc",
|
||||
"short_description": "RAM Memory Test",
|
||||
"long_description": "Experimentally determines how many RAM memory buffers can be allocated.",
|
||||
"icon_url": "http://demo.lnpiggy.com:2121/apps/com.example.memtest_0.0.1.mpk_icon_64x64.png",
|
||||
"download_url": "http://demo.lnpiggy.com:2121/apps/com.example.memtest_0.0.1.mpk",
|
||||
"fullname": "com.example.memtest",
|
||||
"version": "0.0.1",
|
||||
"entrypoint": "assets/memtest.py"
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Name: MemTest
|
||||
Start-Script: assets/memtest.py
|
||||
Version: 0.0.1
|
||||
@@ -1,4 +1,4 @@
|
||||
print("boot.py: version 0.0.2 running")
|
||||
print("boot.py: version 0.0.3 running")
|
||||
|
||||
from machine import Pin, SPI
|
||||
import st7789
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "AppStore",
|
||||
"publisher": "ACME Inc",
|
||||
"short_description": "Store for App(lication)s",
|
||||
"long_description": ""
|
||||
"icon_url": "http://demo.lnpiggy.com:2121/apps/com.example.appstore_0.0.1.mpk_icon_64x64.png",
|
||||
"download_url": "http://demo.lnpiggy.com:2121/apps/com.example.appstore_0.0.1.mpk",
|
||||
"fullname": "com.example.appstore",
|
||||
"version": "0.0.1",
|
||||
"entrypoint": "assets/appstore.py",
|
||||
"category": "appstore"
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Name: AppStore
|
||||
Start-Script: assets/appstore.py
|
||||
Version: 0.0.1
|
||||
@@ -17,8 +17,9 @@ progress_bar = None
|
||||
action_label_install = "Install Latest Version"
|
||||
action_label_uninstall = "Uninstall"
|
||||
|
||||
|
||||
class App:
|
||||
def __init__(self, name, publisher, short_description, long_description, icon_url, download_url, fullname, version):
|
||||
def __init__(self, name, publisher, short_description, long_description, icon_url, download_url, fullname, version, entrypoint):
|
||||
self.name = name
|
||||
self.publisher = publisher
|
||||
self.short_description = short_description
|
||||
@@ -27,9 +28,11 @@ class App:
|
||||
self.download_url = download_url
|
||||
self.fullname = fullname
|
||||
self.version = version
|
||||
self.entrypoint = entrypoint
|
||||
self.image = None
|
||||
self.image_dsc = None
|
||||
|
||||
|
||||
def is_installed_by_path(dir_path):
|
||||
try:
|
||||
if os.stat(dir_path)[0] & 0x4000:
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "Launcher",
|
||||
"publisher": "ACME Inc",
|
||||
"short_description": "Simple launcher to start apps.",
|
||||
"long_description": "",
|
||||
"icon_url": "http://demo.lnpiggy.com:2121/apps/com.example.launcher_0.0.1.mpk_icon_64x64.png",
|
||||
"download_url": "http://demo.lnpiggy.com:2121/apps/com.example.launcher_0.0.1.mpk",
|
||||
"fullname": "com.example.launcher",
|
||||
"version": "0.0.1",
|
||||
"entrypoint": "assets/launcher.py",
|
||||
"category": "launcher"
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Name: Launcher
|
||||
Start-Script: assets/launcher.py
|
||||
Version: 0.0.1
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user