Skip to content

Commit

Permalink
try publishing from git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigopavezi committed Sep 1, 2023
1 parent 0fef018 commit 716ce16
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: Publish

on:
push:
branches:
- main
#on:
# push:
# branches:
# - main

on: [push, pull_request]

jobs:
publish:
# To enable auto publishing to github, update your electron publisher
# config in package.json > "build" and remove the conditional below
if: ${{ github.repository_owner == 'electron-react-boilerplate' }}
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -20,6 +21,12 @@ jobs:
- name: Checkout git repo
uses: actions/checkout@v3

- name: Import Cert
uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CSC_KEY_PASSWORD }}

- name: Install Node and NPM
uses: actions/setup-node@v3
with:
Expand All @@ -32,6 +39,10 @@ jobs:
npm run postinstall
npm run build
- name: Sign main executable
run: |
codesign --deep --options runtime --timestamp --force --verify --verbose --sign "Developer ID Application: FLock.io LTD (35H5QAYP2F)" build/bin/main.bin
- name: Publish releases
env:
# These values are used for auto updates signing
Expand Down
Binary file modified splash/splash.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion splash/splash.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>

<body>
<img src="./splash.gif" />
<img width="600" height="420" src="./splash.gif" />
</body>


Expand Down
4 changes: 2 additions & 2 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const createWindow = async () => {

const splash = new BrowserWindow({
width: 600,
height: 338,
height: 420,
movable: true,
center: true,
icon: getAssetPath('icon.png'),
Expand All @@ -191,7 +191,7 @@ const createWindow = async () => {
splash.close();
mainWindow?.center();
mainWindow?.show();
}, 11000);
}, 8000);

/*
mainWindow.on('ready-to-show', () => {
Expand Down

0 comments on commit 716ce16

Please sign in to comment.