mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-17 08:16:32 +00:00
commit
180bd29afa
26
.github/actions/publish/action.yml
vendored
26
.github/actions/publish/action.yml
vendored
@ -46,32 +46,6 @@ runs:
|
|||||||
run: choco install yq
|
run: choco install yq
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
|
|
||||||
# FIXME: resinci-deploy is not actively maintained
|
|
||||||
# https://github.com/product-os/resinci-deploy
|
|
||||||
- name: Checkout resinci-deploy
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
repository: product-os/resinci-deploy
|
|
||||||
token: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }}
|
|
||||||
path: resinci-deploy
|
|
||||||
|
|
||||||
- name: Build and install resinci-deploy
|
|
||||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
||||||
run: |
|
|
||||||
set -ea
|
|
||||||
|
|
||||||
[[ '${{ inputs.VERBOSE }}' =~ on|On|Yes|yes|true|True ]] && set -x
|
|
||||||
|
|
||||||
runner_os="$(echo "${RUNNER_OS}" | tr '[:upper:]' '[:lower:]')"
|
|
||||||
|
|
||||||
rm -rf ../resinci-deploy && mv resinci-deploy ..
|
|
||||||
|
|
||||||
pushd ../resinci-deploy && npm ci && npm link && popd
|
|
||||||
|
|
||||||
if [[ $runner_os =~ linux|macos ]]; then
|
|
||||||
chmod +x "$(dirname "$(which node)")/resinci-deploy" && which resinci-deploy
|
|
||||||
fi
|
|
||||||
|
|
||||||
# https://www.electron.build/code-signing.html
|
# https://www.electron.build/code-signing.html
|
||||||
# https://github.com/Apple-Actions/import-codesign-certs
|
# https://github.com/Apple-Actions/import-codesign-certs
|
||||||
- name: Import Apple code signing certificate
|
- name: Import Apple code signing certificate
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { app, remote } from 'electron';
|
|
||||||
import { Dictionary } from 'lodash';
|
import { Dictionary } from 'lodash';
|
||||||
|
|
||||||
import * as errors from './errors';
|
import * as errors from './errors';
|
||||||
@ -50,6 +49,7 @@ export async function delay(duration: number): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getAppPath(): string {
|
export function getAppPath(): string {
|
||||||
|
const { app, remote } = require('electron');
|
||||||
return (
|
return (
|
||||||
(app || remote.app)
|
(app || remote.app)
|
||||||
.getAppPath()
|
.getAppPath()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user