Skip to content

Commit 6e57813

Browse files
committed
building guide
1 parent 34dcd74 commit 6e57813

File tree

6 files changed

+17
-39
lines changed

6 files changed

+17
-39
lines changed

src/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Here you will find everything you need to set up and use your Start9 server. For
121121
- [Environment Setup](packaging-guide/environment-setup.md)
122122
- [Quick Start](packaging-guide/quick-start.md)
123123
- [Project Structure](packaging-guide/project-structure.md)
124+
- [Building and Installing](packaging-guide/building.md)
124125
- [Important Info](packaging-guide/important-info.md)
125126

126127
### [❓ Help](help/)

src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
- [Environment Setup](packaging-guide/environment-setup.md)
153153
- [Quick Start](packaging-guide/quick-start.md)
154154
- [Project Structure](packaging-guide/project-structure.md)
155+
- [Building and Installing](packaging-guide/building.md)
155156
- [Important Info](packaging-guide/important-info.md)
156157

157158
- [❓ Help](help/README.md)

src/packaging-guide/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
- [Environment Setup](environment-setup.md)
55
- [Quick Start](quick-start.md)
66
- [Project Structure](project-structure.md)
7+
- [Building and Installing](building.md)
78
- [Important Info](important-info.md)
Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
# Makefile
1+
# Building and Installing
22

3-
Makefile automates building, packaging, and installing StartOS services (.s9pk files) with support for multiple architectures and automatic JS/TS build steps.
4-
5-
## Basic Usage
6-
7-
### Default Build (Universal)
3+
## Default Build (Universal)
84

95
```
106
make
117
```
128

139
Builds a universal package supporting all platforms. Same as running `make all`.
1410

15-
### Platform-Specific Builds
11+
## Platform-Specific Builds
1612

1713
```
1814
make aarch64 # Build for ARM64 (Raspberry Pi, etc.)
@@ -21,7 +17,7 @@ make x86_64 # Build for x86_64 architecture
2117

2218
> **Note:** For convenience, legacy targets `make arm` and `make x86` are also supported as aliases for `aarch64` and `x86_64` respectively. Using the full architecture name is recommended for clarity.
2319
24-
### Installation
20+
## Installing
2521

2622
```
2723
make install
@@ -30,7 +26,7 @@ make install
3026
Builds the package and installs it directly to your configured StartOS device.
3127
Requires a valid `~/.startos/config.yaml` with a `host: http://<device>.local` entry.
3228

33-
## Available Targets
29+
## Summary of Commands
3430

3531
| Target | Description |
3632
| -------------------- | ---------------------------------------------------------- |
@@ -42,15 +38,15 @@ Requires a valid `~/.startos/config.yaml` with a `host: http://<device>.local` e
4238

4339
## Tandem Operations
4440

45-
You can chain multiple targets:
41+
You can chain multiple commands:
4642

4743
```
48-
make clean aarch64 # Clean then build ARM64 package
44+
make clean aarch64 # Clean, then build ARM64 package
4945
make clean x86_64 install # Clean, build x86_64 package, then install
5046
make clean install # Clean, build universal, then install
5147
```
5248

53-
## Example Output
49+
## Example Outputs
5450

5551
**Building aarch64 package:**
5652

@@ -89,12 +85,3 @@ Sideloading 100% █████████████████████
8985
$ make clean
9086
Cleaning up build artifacts...
9187
```
92-
93-
## Prerequisites
94-
95-
- [**start-cli**](https://github.com/start9labs/start-cli): StartOS development toolkit
96-
- **npm**: Node.js package manager
97-
- **`~/.startos/config.yaml`**: must contain your StartOS device host config
98-
- **Developer key**: If missing, `make` will auto-run `start-cli init`
99-
100-
The Makefile automatically builds JavaScript from TypeScript (`npm run build`) and installs dependencies from `package.json` as needed.

src/packaging-guide/project-structure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
└── tsconfig.json
1717
```
1818

19-
#### .gitignore, [Makefile](./Makefile.md), package-lock.json, package.json, and tsconfig.json
19+
#### .gitignore, Makefile, package-lock.json, package.json, and tsconfig.json
2020

21-
These are boilerplate files that need not be edited, except in special circumstances.
21+
These are boilerplate files that generally do not require editing.
2222

2323
#### Dockerfile (optional)
2424

src/packaging-guide/quick-start.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,12 @@ cd [repository-name]
3636
npm i
3737
```
3838

39-
## Build the s9pk
40-
41-
make
42-
43-
## Install the s9pk
44-
45-
### From the CLI
46-
47-
```
48-
start-cli install -h <host> -s <path-to-s9pk>
49-
```
50-
51-
You can eliminate the `-h` argument by hard-coding the host in `~/.startos/config.yaml`. For example:
39+
## Build and Install your Package
5240

5341
```
54-
host: https://server-name.local
42+
make
5543
```
5644

57-
### From the GUI
45+
This produces a `[service-id].s9pk` at the root of your project that can be sideloaded through the StartOS UI.
5846

59-
From the GUI of your StartOS server, go to `System > Sideload`, upload the .s9pk file, and click "Install".
47+
See [Building and Installing](./building.md) for more options and to streamline your development workflow.

0 commit comments

Comments
 (0)