Skip to content

Commit d21ff3f

Browse files
authored
fix: use electron-nightly npm package for nightly builds (#177)
1 parent 7c59db4 commit d21ff3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/InstallCommand.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ type InstallCommandProps = {
88
};
99

1010
export const InstallCommand = ({ name, prefix, version }: InstallCommandProps) => {
11-
const installString = `${prefix} electron@${version.slice(1)}`;
11+
const isNightly = version.includes('nightly');
12+
const installString = `${prefix} electron@${isNightly ? 'npm:electron-nightly@' : ''}${version.slice(1)}`;
1213

1314
const [recentlyCopied, setDidRecentlyCopy] = useState(false);
1415

0 commit comments

Comments
 (0)