mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
Remove post-refresh hook
This commit is contained in:
@@ -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}`
|
||||
]);
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# @@NAME@@ --snap-update
|
||||
echo "refresh hook" | "${SNAP}/bin/electron-launch" "${SNAP}/usr/share/@@NAME@@/bin/@@NAME@@" -
|
||||
Reference in New Issue
Block a user