Skip to content

Conversation

remingtontr
Copy link
Contributor

Updates to Create a Custom Package and Compile a Package completed.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-198.d2l2d7l06y6q7u.amplifyapp.com

Copy link
Contributor

@greenbreakfast greenbreakfast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @remingtontr, looking good. Just a few tweaks needed, see the comments that are part of this review.

Also, in the Compile Packages article, in the "What does it mean for a package to be in production?" section, let's change that sentence to The package source is stored in a remote repository. This remote repository is considered a package feed that the SDK will use as input.

### Package Feed Structure
The following diagram illustrates the structure of a feed directory.

![package-structure-diagram](./assets/package-structure-diagram.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using an image, let's have a code block and just paste in the diagram text.
That should make it more readable for more users (smartphone, desktop, etc)

### Working with Package Feeds
A Package Feed can be considered an input to the OpenWRT SDK or build system. It must be added to the feed configuration and then initialized before packages from the feed can be compiled.

For information on how to work with Package feeds with Onion’s OpenWRT SDK wrapper, see the article on how to [Compile a Package](compile-package).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the link from compile-package to /packages/compile-package
We should use absolute paths in our internal links


Packages may also include:

- A files directory to hold configuration and other additional files.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's bring back all the changes from "file" to "files"

Packages may also include:

- A files directory to hold configuration and other additional files.
- A patches directory is meant to store patches for source code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's bring back all the changes from "patch" to "patches"

1. Changing which repos are listed in the profile config file.
2. Updates to the code in the repo - new versions of code available or fixes to issues causing compilation errors.
Run the following command to ensure all changes are pulled in before compilation:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a Header 3 here to separate the intro from the actual commands. Maybe something like "Commands to Rerun Compilation" ?

@remingtontr
Copy link
Contributor Author

remingtontr commented Feb 27, 2025 via email

@greenbreakfast
Copy link
Contributor

With regard to the changes from File > Files directory and Patch > Patches directory, the correct terms are actually File and Patch, even though there may be multiple files or patches in the directory.

I agree with this in terms of grammar. However, the directories have to be named files and patches to work correctly - so I want to avoid any confusion for readers.

@remingtontr
Copy link
Contributor Author

remingtontr commented Feb 27, 2025 via email

@greenbreakfast
Copy link
Contributor

looks good, thanks!
cc #191 and #192

@greenbreakfast greenbreakfast merged commit eca85ce into main Mar 1, 2025
1 check was pending
@greenbreakfast greenbreakfast deleted the Issue-191 branch March 1, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants