Hello,
I have created simple Desktop App with Vue.js and server.dll in /plugins folder.
App is published on https://github.com/dejanadamovic/boxfront and installed locally with app open https://github.com/dejanadamovic/boxfront
I can run application with app run boxfront and update application with app open https://github.com/dejanadamovic/boxfront
Questions:
If app contains some local data in same folder, how to preserve that data after updating
Is it possible to put application in private repository
You would need to save it in a separate folder, e.g:
var homeDir = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
var appDir = Path.Combine(homeDir, ".boxfront");
var appPrefs = Path.Combine(appDir, "app.prefs");
For small state Iād just store in a serailized JSON file, for larger apps youād consider using an SQLite db.
Yes see this StackOverflow Answer for how to configure your GitHub Token, e.g. by specifying it with -token {GITHUB_TOKEN} on the command-line or by setting the GITHUB_TOKEN Environment variable.
Previously you could only run it with the full URL:
$ app open https://github.com/dejanadamovic/boxfront
But in the latest version (0.0.52) just released Iāve also added support for the short-hand:
$ app open dejanadamovic/boxfront
No, all tools are very much tied to GitHub only for most of their features.
It does when flags are at the start of the command, e.g:
$ app -token {GITHUB_TOKEN} open dejanadamovic/boxfront
But in the latest version (0.0.53) it now processes flags after the command so this should work:
$ app open dejanadamovic/boxfront -token {GITHUB_TOKEN}
Yes thatās what {tool} install does, but it didnāt work for the shorthand, but does now so with the latest version you can now do:
$ app install dejanadamovic/boxfront
Thatās right, itās a tool to help automate installation, not to impose an opinion across all OSās. Iād recommend changing into the working directory, doing any customizations you need in the apps directory, e.g
Iām trying to make app behave like regular desktop app, so console window is not desired behavior.
One more thing I have noticed - terminating app is slow, Iām not sure is this related to my computer or .net core or servicestack?
No problem, I will wait for one more release - thank you for very fast response.
Iām currently creating proof of concept front-end application that needs to be installed on computers in gas stations with touch screen, something like ATM but for delivering packages.
Front-end application needs to comunicate with server and open lockers connected with controller over RS232 interface.
I need to implement on demand and automatic update mechanism, app tool with small applicaion size seems like perfect fit for this.
App will be running 24/7 so stability is crucial.
Server side is allready implemented with ServiceStack and currently in test phase.
Cool, hopes the POC works out well and it has enough resources to run Chromium.
The latest version (0.0.55) should work better, it now creates a Shortcut that runs in a minimum window and the Console Window doesnāt get restored until after Kestrel has shutdown, with this combined with:
ok required delving into Win32 land, but Iāve added a Kiosk mode (in latest 0.0.56), e.g:
CefConfig { Kiosk:true }
Where it should open maximized at fullscreen without the title bar.
Itās pretty cool, just added it in a new https://github.com/mythz/spirals-kiosk - with this you can now open an app from an external GitHub repo with a single command
This is super fast excellent support.
ServiceStack has become my default framework for all web projects, and with this experience maybe even for desktop apps.
Thank you.
Hi Mythz, Iām sorry but I see one more thing that is problem in kiosk mode, and since you already solved every issue so far, I hope that you could cover this one too.
In kiosk mode, on the right side there is vertical bar in entire screen height. First I thought that it is some css issue, but when i enabled scrollbars trough page css scrollbar appeared left to it.
I cannot be sure what is it but it behaves like browser not stretched across entire canvas, or (more probably) it could be winform vertical scrollbar?
Same behavior shows on your spirals-kiosk app.
hmmm Iām seeing none of these issues, and itās weird cause it looks like it can see the installation files, just canāt read them. Does it work if you cd into the app directory, then try running it? e.g:
$ cd %HOMEPATH%\.sharp-apps\spirals-kiosk
$ app
Can you also try installing the app first then running (may be an issue with AntiVirus trying to use files immediately), e.g:
$ app install mythz/spirals-kiosk
$ app run
If itās still an issue, can you run with the verbose flag to see if that highlights any issues:
I checked the directory c:\users\marco\ and it does not include a .sharp-apps directory after using the install or open command (app open mythz/spirals-kiosk)