mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
build: remove legacy travis stuff
This commit is contained in:
parent
da3ac76d5e
commit
30689046f9
5 changed files with 0 additions and 213 deletions
116
.travis.yml
116
.travis.yml
|
|
@ -1,116 +0,0 @@
|
|||
sudo: required
|
||||
language: node_js
|
||||
node_js: '12'
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: osx
|
||||
osx_image: xcode10
|
||||
addons:
|
||||
chrome: stable
|
||||
before_install:
|
||||
- openssl aes-256-cbc -K $encrypted_527645209bb0_key -iv $encrypted_527645209bb0_iv -in build/mac-cert.tar.enc -out mac-cert.tar -d
|
||||
- tar xvf mac-cert.tar
|
||||
|
||||
- os: linux
|
||||
dist: xenial
|
||||
language: generic
|
||||
services:
|
||||
- docker
|
||||
# before_install:
|
||||
# - sudo snap install snapcraft --classic
|
||||
# - export CHROME_BIN=chromium-browser
|
||||
# - export DISPLAY=:99.0
|
||||
# - sh -e /etc/init.d/xvfb start
|
||||
|
||||
addons:
|
||||
ssh_known_hosts:
|
||||
- the-front-end.de
|
||||
- frs.sourceforge.net
|
||||
apt:
|
||||
packages:
|
||||
- sshpass
|
||||
|
||||
env:
|
||||
global:
|
||||
- ELECTRON_CACHE=$HOME/.cache/electron
|
||||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
||||
|
||||
cache:
|
||||
yarn: true
|
||||
directories:
|
||||
- node_modules
|
||||
- $HOME/.cache/electron
|
||||
- $HOME/.cache/electron-builder
|
||||
- $HOME/.npm/_prebuilds
|
||||
|
||||
script:
|
||||
- |
|
||||
if [ -n "$TRAVIS_TAG" ]; then
|
||||
PUB=always
|
||||
else
|
||||
PUB=never
|
||||
fi
|
||||
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
||||
echo '____RUNNING DOCKER____'
|
||||
bash ${TRAVIS_BUILD_DIR}/build/docker/run-linux-win.sh ${PUB}
|
||||
else
|
||||
yarn install && yarn add 7zip-bin-mac
|
||||
yarn run buildAllElectron:noTests
|
||||
travis_wait 33 yarn dist:mac:dl -p $PUB
|
||||
fi
|
||||
|
||||
# NOTE: disabled until next release of electron builder
|
||||
# if [ -n "$TRAVIS_TAG" ]; then
|
||||
# yarn dist:mac:mas
|
||||
# fi
|
||||
|
||||
|
||||
deploy:
|
||||
# Snap Deployment
|
||||
- on:
|
||||
condition: $TRAVIS_OS_NAME = linux
|
||||
tags: false
|
||||
branch: master
|
||||
provider: snap
|
||||
snap: ./app-builds/*.snap
|
||||
channel: edge
|
||||
skip_cleanup: true
|
||||
# we use edge because of this: https://travis-ci.community/t/snap-deployment-stopped-working-out-of-nowhere/6908/2
|
||||
edge: true
|
||||
- on:
|
||||
condition: $TRAVIS_OS_NAME = linux
|
||||
tags: true
|
||||
branch: master
|
||||
provider: snap
|
||||
snap: ./app-builds/*.snap
|
||||
channel: candidate
|
||||
skip_cleanup: true
|
||||
# we use edge because of this: https://travis-ci.community/t/snap-deployment-stopped-working-out-of-nowhere/6908/2
|
||||
edge: true
|
||||
# Web deployment
|
||||
- on:
|
||||
condition: $TRAVIS_OS_NAME = linux
|
||||
tags: true
|
||||
branch: master
|
||||
provider: script
|
||||
script: sshpass -p "$DEPLOY_PASS" rsync -avz ./dist $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
|
||||
skip_cleanup: true
|
||||
# NOTE: disabled until next release of electron builder and until electron works with osx again
|
||||
# - on:
|
||||
# branch: master
|
||||
# condition: $TRAVIS_OS_NAME = osx
|
||||
# tags: true
|
||||
# provider: script
|
||||
# script: xcrun altool --upload-app -f app-builds/mas/superProductivity-*.pkg -u "${APPLEID}" -p "${APPLEIDPASS}"
|
||||
# skip_cleanup: true
|
||||
|
||||
|
||||
# NOTE: this would only work, if we could and wanted to auto publish the github draft
|
||||
# - provider: script
|
||||
# script: brew update && brew install vitorgalvao/tiny-scripts/cask-repair && openssl aes-256-cbc -K $encrypted_c04542ca1075_key -iv $encrypted_c04542ca1075_iv -in build/hub.enc -out ~/.config/hub -d && cask-repair -b -v $TRAVIS_TAG superproductivity
|
||||
# skip_cleanup: true
|
||||
# on:
|
||||
# branch: master
|
||||
# condition: $TRAVIS_OS_NAME = osx
|
||||
# tags: true
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
FROM electronuserland/builder:wine
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# install google chrome
|
||||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
|
||||
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
|
||||
apt-get update -y && apt-get install -y --no-install-recommends xvfb google-chrome-stable libgconf-2-4 && \
|
||||
# clean
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# replace shell with bash so we can source files
|
||||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
||||
|
||||
# add yarn repo
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
# install yarn and clean up
|
||||
RUN apt-get update && apt-get install -y yarn && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV NVM_DIR /usr/local/nvm
|
||||
ENV NODE_VERSION 12.14.1
|
||||
|
||||
RUN mkdir $NVM_DIR -p
|
||||
|
||||
# install nvm with node and npm
|
||||
RUN curl -sS -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash
|
||||
|
||||
# install node and npm
|
||||
RUN source $NVM_DIR/nvm.sh \
|
||||
&& nvm install $NODE_VERSION \
|
||||
&& nvm alias default $NODE_VERSION \
|
||||
&& nvm use default
|
||||
|
||||
# add node and npm to path so the commands are available
|
||||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
|
||||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
||||
|
||||
# confirm installation
|
||||
RUN node -v
|
||||
RUN yarn -v
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PWD2=$PWD
|
||||
# read as arg
|
||||
PUB=$1
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo PUB $PUB
|
||||
google-chrome --version
|
||||
|
||||
docker run $ENVS --rm \
|
||||
$(env | \
|
||||
grep -Eo '^[^\s=]*(_TOKEN|_KEY)[^\s=]*' | \
|
||||
sed '/^$/d;s/^/-e /' | \
|
||||
paste -sd ' ' \
|
||||
) \
|
||||
-v ${PWD2}:/project \
|
||||
-v ~/.cache/electron:/root/.cache/electron \
|
||||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
||||
$(docker image build -q .) \
|
||||
/bin/bash -c "echo '____DOCKER_INNER_START____' && echo $PUB && node -v && npm -v && yarn -v && ls -l && yarn --link-duplicates --pure-lockfile && yarn run dist:linuxAndWin -p ${PUB} && ls -l ./dist"
|
||||
Binary file not shown.
|
|
@ -1,33 +0,0 @@
|
|||
require('dotenv').config();
|
||||
const {notarize} = require('electron-notarize');
|
||||
const fs = require('fs');
|
||||
|
||||
exports.default = async function notarizing(context) {
|
||||
const {electronPlatformName, appOutDir} = context;
|
||||
if (electronPlatformName !== 'darwin') {
|
||||
return;
|
||||
}
|
||||
|
||||
const appName = context.packager.appInfo.productFilename;
|
||||
const appBundleId = context.packager.appInfo.macBundleIdentifier;
|
||||
const appPath = `${appOutDir}/${appName}.app`;
|
||||
if (!fs.existsSync(appPath)) {
|
||||
throw new Error(`Cannot find application at: ${appPath}`);
|
||||
}
|
||||
|
||||
try {
|
||||
let envBefore = process.env.DEBUG;
|
||||
process.env.DEBUG = 'electron-notarize';
|
||||
await notarize({
|
||||
appBundleId,
|
||||
appPath,
|
||||
appleId: process.env.APPLEID,
|
||||
appleIdPassword: process.env.APPLEIDPASS,
|
||||
});
|
||||
process.env.DEBUG = envBefore;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
throw new Error(e);
|
||||
}
|
||||
console.log(`Notarizing DONE`);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue