mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-08-28 23:01:37 +00:00
FIX - use repository-native NUI build instructions (#22)
Replace the unavailable workspace-only build_frontend.bat hint with the frontend pnpm commands shipped in the GitHub source tree. Link the pushed frontend development guide and keep the local-only script name out of the startup diagnostic through regression coverage.
This commit is contained in:
@@ -650,7 +650,7 @@ pnpm build
|
||||
|
||||
### The resource starts but the phone UI is missing
|
||||
|
||||
- On startup, the server console prints `SKY PHONE UI BUILD IS MISSING OR INCOMPLETE` and lists the missing or invalid packaged files.
|
||||
- On startup, the server console prints `SKY PHONE UI BUILD IS MISSING OR INCOMPLETE`, lists the missing or invalid packaged files, and shows repository-native build commands.
|
||||
- Install the latest published release package rather than GitHub's automatically generated source archive.
|
||||
- Confirm `sky_phone/source/html/index.html`, `assets`, `img`, and `sounds` exist.
|
||||
- Developers working from source must run the frontend production build before starting the resource.
|
||||
|
||||
@@ -112,7 +112,11 @@ local function print_missing_nui_notice(missing_paths)
|
||||
lines[#lines + 1] = ""
|
||||
lines[#lines + 1] = "^3 Install the latest published release package, not GitHub's automatic source archive.^0"
|
||||
lines[#lines + 1] = "^5 Release: https://github.com/sky-systems/sky_phone/releases/latest^0"
|
||||
lines[#lines + 1] = "^3 Developers working from source must run build_frontend.bat before starting sky_phone.^0"
|
||||
lines[#lines + 1] = "^3 Developers working from source:^0"
|
||||
lines[#lines + 1] = "^5 cd frontend^0"
|
||||
lines[#lines + 1] = "^5 pnpm install --frozen-lockfile^0"
|
||||
lines[#lines + 1] = "^5 pnpm build^0"
|
||||
lines[#lines + 1] = "^5 Build guide: https://github.com/sky-systems/sky_phone#frontend-development^0"
|
||||
lines[#lines + 1] = ("^1%s^0"):format(border)
|
||||
|
||||
print(table.concat(lines, "\n"))
|
||||
|
||||
@@ -39,7 +39,11 @@ assert(missing_build_output:find("source/html/assets/*", 1, true))
|
||||
assert(missing_build_output:find("source/html/img/custom-app.svg", 1, true))
|
||||
assert(missing_build_output:find("source/html/sounds/button.mp3", 1, true))
|
||||
assert(missing_build_output:find("not GitHub's automatic source archive", 1, true))
|
||||
assert(missing_build_output:find("build_frontend.bat", 1, true))
|
||||
assert(missing_build_output:find("cd frontend", 1, true))
|
||||
assert(missing_build_output:find("pnpm install --frozen-lockfile", 1, true))
|
||||
assert(missing_build_output:find("pnpm build", 1, true))
|
||||
assert(missing_build_output:find("https://github.com/sky-systems/sky_phone#frontend-development", 1, true))
|
||||
assert(not missing_build_output:find("build_frontend.bat", 1, true))
|
||||
|
||||
local missing_asset_files = {}
|
||||
for path, content in pairs(valid_files) do
|
||||
|
||||
Reference in New Issue
Block a user