Initial commit

This commit is contained in:
2024-11-22 23:29:59 -07:00
commit f6379c144b
3594 changed files with 309643 additions and 0 deletions

3
targets/browser Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
task/setup-build "browser"

10
targets/browser.html Executable file
View File

@@ -0,0 +1,10 @@
<script type="importmap">
{
"imports": {
"device": "./device/browser.js",
"store": "./lib/store.js"
}
}
</script>
<script src="./node_modules/jsmediatags/dist/jsmediatags.min.js"></script>
<script type="module" src="src/index.js"></script>

10
targets/kaios Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
task/inject "targets/kaios.html"
rm -rf build/*
cp -r index.html ./targets/manifest.webapp assets/ build/
# ./node_modules/.bin/babel device --out-dir build/device
# ./node_modules/.bin/babel src --out-dir build/src
# ./node_modules/.bin/babel lib --out-dir build/lib
cp node_modules/jsmediatags/dist/jsmediatags.min.js build/
node_modules/rollup/dist/bin/rollup -c ./rollup.config.js

2
targets/kaios.html Normal file
View File

@@ -0,0 +1,2 @@
<script src="./jsmediatags.min.js"></script>
<script src="./index.js"></script>

45
targets/manifest.webapp Normal file
View File

@@ -0,0 +1,45 @@
{
"version": "1.0.0",
"name": "audioplayer",
"description": "Simple example of a to-do list",
"type": "privileged",
"fullscreen": true,
"launch_path": "/index.html",
"icons": {
"56": "/assets/icons/kaios_56.png",
"112": "/assets/icons/kaios_112.png"
},
"developer": {
"name": "Dakedres",
"url": "https://dakedr.es"
},
"locales": {
"en-US": {
"name": "Audioplayer",
"subtitle": "Simple example of a to-do list",
"description": "Simple example of a to-do list"
}
},
"permissions": {
"device-storage:sdcard": {
"description": "Read/Write from/to sd-card",
"access": "readwrite"
},
"device-storage:music": {
"description": "Read/Write from/to intern storage",
"access": "readwrite"
},
"audio-channel-normal" : {
"description" : "Needed to play this app's audio content on the normal channel"
},
"audio-channel-content" : {
"description" : "Needed to play this app's audio content on the content channel"
},
"volumemanager":{},
"browser": {}
},
"default_locale": "en-US"
}

13
targets/nw Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
util/setup-build "nw"
wget -c "https://dl.nwjs.io/v0.93.0/nwjs-v0.93.0-linux-x64.tar.gz" -O - \
| tar -xz -C build/ --strip-components=1
printf %s\\n '#!/bin/sh
tc_path=$(readlink -f "$0")
tc_dir=$(dirname "$tc_path")
"${tc_dir}/nw" "${tc_dir}"
' > build/tc
chmod +x build/tc

5
targets/nw.json Executable file
View File

@@ -0,0 +1,5 @@
{
"imports": {
"device": "./device/nw.js"
}
}