Comments (4)
Yes, if you install the app again. That's not the normal use case as far as I'm concerned.
For example in verbs it's different: As multiple apps might use the same verbs, it makes sense to keep the resource.
from scripts.
It is not only about keeping the resource. I see two possible benefits of using Resource
over Downloader
:
Resource
could be imagined as a temporary object (i.e. file or directory) that is automatically deleted after exiting the script. This is useful for example when downloading archives or installers that should be deleted afterwards anywayResource
returns the path leading to the downloaded file, this means that you don't need to do any path building on the calling site (e.g.originDirectory + exeName
). This reduces the number of possible errors a script developer can do (for example I'm often asking myself the question:Is there a "/" missing between originDirectory and exeName?
)
In addition Resource
uses Downloader
internally so it is essentially the same anyway
from scripts.
The var
to const
is done. What's the advantage of using Resource
? Shouldn't Resource
be used only for stuff which is shared between scripts? If you use it to download big files, I think they will remain in the resources directory and fill up your hard drive.
from scripts.
At least you won't have to redownload them everytime.
from scripts.
Related Issues (20)
- Update "Total War: ROME 2" script
- Update "Lego Rock Raiders" script
- "Resource" vs "Downloader" HOT 15
- Add "logging" Module HOT 7
- Epic Games Launcher not working
- Support for Lutris's scripts HOT 19
- Can't login into Steam if virtual desktop is enabled HOT 5
- Are you the one who wrote the scripts for PlayOnLinux for "Microsoft Office 2010" and "Microsoft Office 2013"? HOT 1
- Flatpak PlayOnLinux MSOffice2010 script master branch not working. HOT 1
- Far cry wrong image format
- Cannot install Notepad++ HOT 1
- Add support for dungeon defenders HOT 1
- GitHub actions JSDoc update HOT 4
- mspatcha download link broken HOT 1
- Microsoft office fails to install. HOT 8
- Add Crossfire
- Phoenicis doesn't work on Mac because sortVersions fails to parse json. HOT 10
- verbs checksum mismatch!!! HOT 3
- Game Road Rash installation leads to a Java error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scripts.