Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 17 09:15
    TenzoZero commented #13
  • Aug 15 05:23
    TenzoZero commented #13
  • Aug 13 18:36
    TenzoZero commented #13
  • Aug 12 07:48
    TenzoZero commented #13
  • Aug 12 07:48
    TenzoZero commented #13
  • Aug 12 07:47
    TenzoZero commented #13
  • Aug 11 18:40
    TheJaredWilcurt closed #12
  • Aug 11 18:40
    TheJaredWilcurt commented #12
  • Aug 11 18:40
    TheJaredWilcurt commented #13
  • Aug 09 14:33
    TenzoZero opened #13
  • Apr 06 10:55
    milahu edited #12
  • Apr 06 10:39
    milahu edited #12
  • Apr 06 10:35
    milahu opened #12
  • Jan 26 23:53
    erlend-sh commented #10
  • Jan 26 23:52
    erlend-sh commented #10
  • Sep 10 2021 11:48
    TheJaredWilcurt commented #11
  • Sep 09 2021 15:48
    bigoper commented #11
  • Sep 09 2021 15:39
    bigoper opened #11
  • Aug 24 2018 19:41

    TheJaredWilcurt on master

    Update ugui.js (compare)

  • Jun 15 2018 02:26
    TheJaredWilcurt commented #10
JadianRadiator
@JadianRadiator
thankyou
The Jared Wilcurt
@TheJaredWilcurt
If you are creating desktop shortcuts, there is a library for that. https://github.com/nwutils/create-desktop-shortcuts
JadianRadiator
@JadianRadiator
I'm making/using this thing to use Windows' version of creating symbolic links
which is something they don't advertise.
And it's only available through Windows' command line.
it also requires admin, but that's irrelevant to this point
The Jared Wilcurt
@TheJaredWilcurt
:+1:
JadianRadiator
@JadianRadiator
I wonder if inserting the package.nw zip file into nw.js would still work if I used WinRAR set to not compress at all
will try that now
The Jared Wilcurt
@TheJaredWilcurt
as long as it is a zip file, NW.js will unzip it to a temp directory before launching. It is not recommended though, as it means every launch will be slow waits to unzip it to the temp folder
you can instead create a desktop shortcut that launches C:\folder\nw.exe "C:\folder\your-app" so long as the your-app folder contains a package.json
or you could put a package.nw folder next to the nw.exe and if the package.nw folder contains a package.json that would work too
JadianRadiator
@JadianRadiator
the insert a zip thing right now is actually just a curiosity that's unrelated to making my windows linker
The Jared Wilcurt
@TheJaredWilcurt
or just place the package.json next to the nw.exe
JadianRadiator
@JadianRadiator
I'll be using a folder named package.nw
and not insert a zip file
only trying the zip because I'm curious if it would work with a zip that isn't compressed
The Jared Wilcurt
@TheJaredWilcurt
yes, however there is still overhead of copying the files to a new folder
JadianRadiator
@JadianRadiator
How do I integrate this into my app?
I'm too anxious about breaking something to trial & error how and where to insert it.
require('fs').existsSync(desiredFilePath)
also, do I have to use npm compiling for my app to use github updates?
JadianRadiator
@JadianRadiator
or is that just an update notifier that doesn't actually update the app?
The Jared Wilcurt
@TheJaredWilcurt
fs is built in to Node. Node is built in to NW.js. You can run that line of code in the same places/way you would run any JS code for a website/in a browser. NW.js will understand.
all that code does is check if a path exists
if you are using modules that are not built in to node, then you can npm install them and it will download them into a folder called node_modules. That folder needs to be shipped with your app, if your app uses the code in those modules
UGUI has an advanced feature to "check for updates". it is set up to check if there is a newer version off the app on github. https://ugui.io/api/#toc44
JadianRadiator
@JadianRadiator
Sooo... I just use that line to hide the submit button?
Or grey it out or something?
The Jared Wilcurt
@TheJaredWilcurt
You're wanting to add in your own custom logic. which is fine, but you'll need to understand how to code a website for that. UGUI is meant to just give a basic interaction with a CLI. If the user has to interact with a folderpicker dialog, they can't really pick a folder that doesn't exist
If you know HTML/JS you can extend the app out to do anything you want though
JadianRadiator
@JadianRadiator
I was planning on the folder picker to pick the location where the sym link will be located,
with a text field to set the name of the sym link
JadianRadiator
@JadianRadiator
I'm also most likely the only one that'll ever use it
JadianRadiator
@JadianRadiator
I should have realized this sooner,
but I'm putting in a looot of work and effort in the name of being lazy over this
The Jared Wilcurt
@TheJaredWilcurt
then you should have a different field for the name, then combine them in the <arg>s
JadianRadiator
@JadianRadiator
any idea what Node.js module I'd need to be able to play videos off of my Plex server via it's local ip web panel?
The Jared Wilcurt
@TheJaredWilcurt
I would recommend launching a different executable for that. like VLC or something. that is a lot of work to deal with codecs and streaming video. It is possible, but you will need to build out a solution, not find a premade module
The Jared Wilcurt
@TheJaredWilcurt
there are several VLC node modules you could look at if you wanted to ship a portable copy of VLC with your app. Some are windows-only though, so be aware of that if you are trying to make something cross-platform
The Jared Wilcurt
@TheJaredWilcurt
and some do not ship with it at all, and just assume that it is globally installed in the PATH
JadianRadiator
@JadianRadiator
well I'm mainly just wanting it for myself.
Although, the Plex web client uses html5 to play videos embeded into the web page
The Jared Wilcurt
@TheJaredWilcurt
yes, but browsers have very limited codec support
JadianRadiator
@JadianRadiator
oh well, I'l be sticking with using my normal browser for now
UGUI uses NW.js which is built on Chromium, so many video files that play in Chrome won't play in Chromium without additional FFMPG setup
JadianRadiator
@JadianRadiator
I just realized something that make's looking this up a total waste of time for me.
originally to save resources while watching
which I'd only need if I was playing a game at the same time
and if I'm watching stuff through Plex, I wouldn't be playing a game
The Jared Wilcurt
@TheJaredWilcurt
I'm pretty sure you can get a network path or URL to your plex server and open that up directly in VLC. and that will be the lowest resource approach to playback
JadianRadiator
@JadianRadiator
I can, but VLC would have to be able to load/run html for it to actually work for this
or I'd have to manually copy/paste the video's feed from a normal browser looking at it
well, they have a Windows client.
So I'll be going through that...probably