Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update "Origin" scripts #1177

Open
madoar opened this issue Jan 5, 2020 · 0 comments · May be fixed by #1185
Open

Update "Origin" scripts #1177

madoar opened this issue Jan 5, 2020 · 0 comments · May be fixed by #1185

Comments

@madoar
Copy link
Collaborator

madoar commented Jan 5, 2020

The following changes should be done:

  • change var to const or let
  • think about replacing Downloader with Resource

var originDir = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Origin/";
new Downloader()
.wizard(wizard)
.url("https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginUpdate_9_12_0_34172.zip")
.checksum("c4a2a742f966efa0114bf8025699007ebbda4d8f")
.to(originDir + "OriginUpdate_9_12_0_34172.zip")
.get();
new Extractor()
.wizard(wizard)
.archive(originDir + "OriginUpdate_9_12_0_34172.zip")
.to(originDir)
.extract();

var originDir = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Origin/";
new Downloader()
.wizard(wizard)
.url("https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginUpdate_9_12_0_34172.zip")
.checksum("c4a2a742f966efa0114bf8025699007ebbda4d8f")
.to(originDir + "OriginUpdate_9_12_0_34172.zip")
.get();
new Extractor()
.wizard(wizard)
.archive(originDir + "OriginUpdate_9_12_0_34172.zip")
.to(originDir)
.extract();

@madoar madoar changed the title Update "Origin Legacy" script Update "Origin" scripts Jan 5, 2020
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 a pull request may close this issue.

1 participant