Skip to content

Commit

Permalink
feat: Add Squirrel's --framework-version Option (#274) (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
trodi authored and MarshallOfSound committed Feb 28, 2019
1 parent a113097 commit b07643b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -64,6 +64,7 @@ There are several configuration settings supported:
| `noDelta` | No | Should Squirrel.Windows delta packages? (disable only if necessary, they are a Good Thing) |
| `remoteReleases` | No | A URL to your existing updates. If given, these will be downloaded to create delta updates |
| `remoteToken` | No | Authentication token for remote updates |
| `frameworkVersion` | No | Set the required .NET framework version, e.g. `net461` |

## Sign your installer or else bad things will happen

Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Expand Up @@ -177,6 +177,11 @@ export async function createWindowsInstaller(options) {
args.push('--no-delta');
}

if (options.frameworkVersion) {
args.push('--framework-version');
args.push(options.frameworkVersion);
}

log(await spawn(cmd, args));

if (options.fixUpPaths !== false) {
Expand Down

0 comments on commit b07643b

Please sign in to comment.