Update publish settings

This commit is contained in:
Thomas Nordquist
2019-01-14 15:28:24 +01:00
parent ac2387ed9b
commit 0df5ff13c1
3 changed files with 6 additions and 15 deletions

View File

@@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
docker run --rm -ti \ docker run --rm -ti \
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \
--env ELECTRON_CACHE="/root/.cache/electron" \ --env ELECTRON_CACHE="/root/.cache/electron" \
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \ --env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
--env GH_TOKEN="$GH_TOKEN" \
-v ${PWD}:/project \ -v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \ -v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \ -v ~/.cache/electron-builder:/root/.cache/electron-builder \

View File

@@ -7,7 +7,7 @@ const linux: builder.CliOptions = {
arm64: true, arm64: true,
linux: ['AppImage', 'deb', 'rpm', 'pacman', 'tar.gz'], linux: ['AppImage', 'deb', 'rpm', 'pacman', 'tar.gz'],
projectDir: './build/clean', projectDir: './build/clean',
publish: 'onTag', publish: 'always',
} }
const linuxSnap: builder.CliOptions = { const linuxSnap: builder.CliOptions = {
@@ -17,7 +17,7 @@ const linuxSnap: builder.CliOptions = {
arm64: true, arm64: true,
linux: ['snap'], linux: ['snap'],
projectDir: './build/clean', projectDir: './build/clean',
publish: 'onTag', publish: 'always',
} }
const win: builder.CliOptions = { const win: builder.CliOptions = {
@@ -27,7 +27,7 @@ const win: builder.CliOptions = {
arm64: false, arm64: false,
win: ['portable', 'nsis'], win: ['portable', 'nsis'],
projectDir: './build/clean', projectDir: './build/clean',
publish: 'onTag', publish: 'always',
} }
const mac: builder.CliOptions = { const mac: builder.CliOptions = {
@@ -37,7 +37,7 @@ const mac: builder.CliOptions = {
arm64: false, arm64: false,
mac: ['dmg'], mac: ['dmg'],
projectDir: './build/clean', projectDir: './build/clean',
publish: 'onTag', publish: 'always',
} }
async function executeBuild() { async function executeBuild() {

View File

@@ -26,13 +26,3 @@ cd ..
npm run build npm run build
rm -rf app/node_modules rm -rf app/node_modules
cd "$ORIGINAL_DIR" cd "$ORIGINAL_DIR"
exit 0
docker run --rm -ti \
--env ELECTRON_CACHE="/root/.cache/electron" \
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
--env GH_TOKEN="$GH_TOKEN" \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine node_modules/.bin/ts-node build.ts