Remove post-refresh hook

This commit is contained in:
Daniel Imms
2018-02-07 11:13:50 -08:00
parent 32c28382f7
commit 90385c778b
2 changed files with 1 additions and 9 deletions

View File

@@ -206,10 +206,6 @@ function prepareSnapPackage(arch) {
.pipe(replace('@@VERSION@@', `${packageJson.version}-${linuxPackageRevision}`))
.pipe(rename('snap/snapcraft.yaml'));
const postRefreshHook = gulp.src('resources/linux/snap/hooks/post-refresh', { base: '.' })
.pipe(replace('@@NAME@@', product.applicationName))
.pipe(rename('snap/hooks/post-refresh'));
const electronLaunch = gulp.src('resources/linux/snap/electron-launch', { base: '.' })
.pipe(rename('electron-launch'));
@@ -223,7 +219,7 @@ function buildSnapPackage(arch) {
const snapBuildPath = getSnapBuildPath(arch);
const snapFilename = `${product.applicationName}-${packageJson.version}-${linuxPackageRevision}-${arch}.snap`;
return shell.task([
`chmod a+x ${snapBuildPath}/electron-launch ${snapBuildPath}/snap/hooks/post-refresh`,
`chmod a+x ${snapBuildPath}/electron-launch`,
`snapcraft --version`,
`cd ${snapBuildPath} && snapcraft snap --output ../${snapFilename}`
]);

View File

@@ -1,4 +0,0 @@
#!/bin/bash
# @@NAME@@ --snap-update
echo "refresh hook" | "${SNAP}/bin/electron-launch" "${SNAP}/usr/share/@@NAME@@/bin/@@NAME@@" -