ugly-app 0.1.349 → 0.1.351
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/icons/logo.sh +47 -0
- package/assets/icons/source/icon-character.png +0 -0
- package/assets/icons/source/icon-corners.png +0 -0
- package/assets/icons/source/icon-full.png +0 -0
- package/dist/cli/version.d.ts +1 -1
- package/dist/cli/version.js +1 -1
- package/package.json +2 -1
- package/src/cli/version.ts +1 -1
- package/assets/icons/icon-1024x1024.png +0 -0
- package/assets/icons/icon-144x144.png +0 -0
- package/assets/icons/icon-144x144.webp +0 -0
- package/assets/icons/icon-152x152.png +0 -0
- package/assets/icons/icon-152x152.webp +0 -0
- package/assets/icons/icon-167x167.png +0 -0
- package/assets/icons/icon-167x167.webp +0 -0
- package/assets/icons/icon-16x16.png +0 -0
- package/assets/icons/icon-16x16.webp +0 -0
- package/assets/icons/icon-180x180.png +0 -0
- package/assets/icons/icon-180x180.webp +0 -0
- package/assets/icons/icon-192x192.png +0 -0
- package/assets/icons/icon-192x192.webp +0 -0
- package/assets/icons/icon-32x32.png +0 -0
- package/assets/icons/icon-32x32.webp +0 -0
- package/assets/icons/icon-36x36.png +0 -0
- package/assets/icons/icon-36x36.webp +0 -0
- package/assets/icons/icon-48x48.png +0 -0
- package/assets/icons/icon-48x48.webp +0 -0
- package/assets/icons/icon-512x512.png +0 -0
- package/assets/icons/icon-512x512.webp +0 -0
- package/assets/icons/icon-72x72.png +0 -0
- package/assets/icons/icon-72x72.webp +0 -0
- package/assets/icons/icon-96x96.png +0 -0
- package/assets/icons/icon-96x96.webp +0 -0
- package/assets/icons/icon.ico +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Regenerate the 3 source icon variants from icon-character.png
|
|
3
|
+
#
|
|
4
|
+
# Source of truth: source/icon-character.png (U with transparent background)
|
|
5
|
+
# This script rebuilds icon-full.png and icon-corners.png from it.
|
|
6
|
+
#
|
|
7
|
+
# Downstream repos (../app, ../ugly-studio) generate their own
|
|
8
|
+
# platform-specific sizes via their own sync-icons.sh scripts.
|
|
9
|
+
#
|
|
10
|
+
# Platform mapping:
|
|
11
|
+
# iOS → icon-full (iOS applies its own rounded-rect mask)
|
|
12
|
+
# macOS → icon-character (transparent bg, macOS applies squircle mask)
|
|
13
|
+
# Android → icon-character foreground + #111111 adaptive bg; icon-full for legacy
|
|
14
|
+
# Windows → icon-corners (transparent rounded corners, shown as-is)
|
|
15
|
+
# Favicon → icon-character (transparent, max contrast in browser tab)
|
|
16
|
+
|
|
17
|
+
set -euo pipefail
|
|
18
|
+
cd "$(dirname "$0")/source"
|
|
19
|
+
|
|
20
|
+
CHARACTER="icon-character.png"
|
|
21
|
+
BG_COLOR="#111111"
|
|
22
|
+
|
|
23
|
+
if [ ! -f "$CHARACTER" ]; then
|
|
24
|
+
echo "ERROR: Missing $CHARACTER — this is the source of truth."
|
|
25
|
+
echo "Extract it from the original icon using AI background removal."
|
|
26
|
+
exit 1
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
echo "Rebuilding source variants from $CHARACTER..."
|
|
30
|
+
|
|
31
|
+
# icon-full.png: character on dark background, edge-to-edge square (iOS, Android legacy)
|
|
32
|
+
magick -size 1024x1024 xc:"$BG_COLOR" "$CHARACTER" -gravity center -composite -strip icon-full.png
|
|
33
|
+
echo " icon-full.png"
|
|
34
|
+
|
|
35
|
+
# Rounded-rect mask
|
|
36
|
+
magick -size 1024x1024 xc:none -draw "roundrectangle 0,0,1024,1024,180,180" /tmp/ugly-mask-corners.png
|
|
37
|
+
|
|
38
|
+
# icon-corners.png: character on dark background, transparent rounded corners (Windows)
|
|
39
|
+
magick icon-full.png -alpha Set /tmp/ugly-mask-corners.png -compose DstIn -composite -strip icon-corners.png
|
|
40
|
+
rm -f /tmp/ugly-mask-corners.png
|
|
41
|
+
echo " icon-corners.png"
|
|
42
|
+
|
|
43
|
+
echo ""
|
|
44
|
+
echo "Done. 3 source variants in $(pwd):"
|
|
45
|
+
echo " icon-character.png (transparent bg)"
|
|
46
|
+
echo " icon-full.png (solid #111111, edge-to-edge)"
|
|
47
|
+
echo " icon-corners.png (solid #111111, rounded-rect corners)"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/cli/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.1.
|
|
1
|
+
export declare const CLI_VERSION = "0.1.351";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/cli/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugly-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.351",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/server/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"test:scaffold": "vitest run tests/cli/scaffold.test.ts",
|
|
39
39
|
"test:watch": "vitest",
|
|
40
40
|
"preversion": "[ \"$SKIP_README\" = \"1\" ] || claude --print 'Read src/server/App.ts, src/client/Router.tsx, src/shared/Router.ts, src/client/AppProvider.tsx, templates/server/index.ts and rewrite README.md to accurately document the current ugly-app public API. Cover: createApp/AppConfigurator, routing (definePage/lazyPage/lazyPageLoader/useRouter/openPopup), auth flow, TypedDB, AI providers, storage. Then run npm run build to verify everything compiles.'",
|
|
41
|
+
"logo": "cd assets/icons && ./logo.sh",
|
|
41
42
|
"release": "npm version patch --force && npm run build && npm publish && git push --follow-tags",
|
|
42
43
|
"release:quick": "SKIP_README=1 npm run release"
|
|
43
44
|
},
|
package/src/cli/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by prebuild — do not edit manually
|
|
2
|
-
export const CLI_VERSION = "0.1.
|
|
2
|
+
export const CLI_VERSION = "0.1.351";
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/assets/icons/icon.ico
DELETED
|
Binary file
|