Commit graph

15 commits

Author SHA1 Message Date
bunnie
043dfd84ae update formatting to latest nightly rules 2024-09-24 01:49:45 +08:00
bunnie
a1bf70b9ed regex search/replace instances of xous_ipc::String to String
split into a couple commits for ease of committing
2024-09-22 14:14:55 +08:00
bunnie
faafa9078b format app-loader 2024-01-14 18:54:13 +08:00
bunnie
57c00987b8 cleanup formatting; terminate process on panic; add missing unsafe{}
this is some general clean-up on the code to get it in line with
the rest of the guidelines in the system + addresses some of @xobs
comments.
2023-10-30 23:58:40 +08:00
Vihaan Jim
d99f40047c Finally fix build issues
I was facing a bunch of issues with the build system and
dependencies. I fixed it by using the Cargo.lock from upstream/main. I
also modified app-loader since as_slice_mut is now unsafe.
2023-10-14 17:09:28 -04:00
Vihaan Jim
5186a723f5 Add GAM menu token handling
This adds the tokens for app submenus. I am now successfully able to
load `vault'!
2023-08-10 20:09:19 -04:00
Vihaan Jim
7532a34769 Switch from Vec to MemoryRange
Instead of getting the slice by creating a large Vec, I now use
MapMemory to create this region directly. There is some sort of bug
with Vec that doesn't allow creation of large Vec's, and this change
makes it possible to load much larger apps (including `vault',
although there are still issues like menus to sort out).
2023-08-10 18:11:49 -04:00
Vihaan Jim
ec6fad51f5 Slight menu change
I have moved the items to load specific apps to a new menu so that it
will be easy to modify when we want to reload the list.
2023-08-09 21:43:55 -04:00
Vihaan Jim
20b978a126 Add English locales
I have not added translations for other languages yet
2023-08-09 17:33:20 -04:00
Vihaan Jim
698df7007c Add another progress bar + go back to menu
I have added another progressbar when the list of apps is being
loaded (I find that this makes stuff more clear).

I also discovered that if I use gam to "switch" to app-loader from
itself this works at bringing the menu back up
2023-08-09 14:49:54 -04:00
Vihaan Jim
9fc988186b Working + somewhat improved UI!
`app-loader' can now successfully download apps from the app server
and run them! I have also improved the UI by adding a progressbar
when an app is loading so that you know when it is done and also
replacing some panics with notifications that way the whole machine
doesn't shut down if the server has some problems.

The remaining UI work is to make sure that the menu pops back up when
you for example set the server.

I also need to add locales, a README, etc.
2023-08-09 13:49:33 -04:00
Vihaan Jim
2d74a44a89 Add almost working server/client
This creates:
1) An `xtask' command that allows someone to compile individual apps
without compiling the entire image (note that this is required because
xtask generates files that contain gam context names, and if you just
do a regular `cargo build' building the app will fail)
2) A python file app_server.py that acts as a server to give the
app-loader a list of the apps and actually send it the
3) A basic UX that allows app-loader to set the server, get the list
of apps, and load apps.

Currently, this mostly works, except that there is some random
`ShareViolation' when the app-loader loads the app.
2023-08-08 18:08:25 -04:00
Vihaan Jim
97bfd06bfe Cleanup
I have made `app-loader' more object oriented (to fit in with the
style of the other xous apps), and I am moving some of my personal
projects to another branch of my repo
2023-08-05 12:11:01 -04:00
Vihaan Jim
be58fbf0c3 Unmess-up stuff 2023-08-02 16:49:47 -04:00
Vihaan Jim
ded9049ee4 Turn app-loader into an app instead of a service
When the user selects App Loader from the app menu, a new menu shows
up that displays the currently loaded apps (in the future this will
contain options to add/remove apps as well). This is a much more sane
approach than whatever I was doing before because it requires minimal
changes to the rest of the source tree (I had to change xtask so that
it would replace -'s with _'s in constant names so that I could name
my app app-loader).
2023-08-01 22:16:40 -04:00
Renamed from services/app-loader/src/api.rs (Browse further)