Skip to content

Commit

Permalink
Merge pull request #4 from vuongle2609/update-editor
Browse files Browse the repository at this point in the history
update build file
  • Loading branch information
vuongle2609 authored Apr 11, 2024
2 parents 174dd36 + 902bd0f commit 0bde3a4
Show file tree
Hide file tree
Showing 4 changed files with 477 additions and 877 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
---
name: 'release'
name: "release"

on:
push:
branches:
- 'main'
- "main"

jobs:
buildWin:
runs-on: 'windows-latest'
runs-on: "windows-latest"

steps:
- name: 'Checkout source code'
uses: 'actions/checkout@v3'
- name: "Checkout source code"
uses: "actions/checkout@v3"
with:
lfs: true
fetch-depth: 0
- name: '🔧 setup node'

- name: "🔧 setup node"
uses: actions/setup-node@v3
with:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
cache: "npm"
cache-dependency-path: "package-lock.json"
node-version: 20
- run: 'npm install'
- run: 'npm run build'

- run: "npm install"
- run: "npm run build"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: 'marvinpinto/action-automatic-releases@latest'
- name: "release build file"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
automatic_release_tag: 'latest'
prerelease: true
title: 'Development Build'
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "stable"
prerelease: false
title: "Dori Code Editor"
files: |
.\release\0.0.0\Dori-Windows-0.0.0-Setup.exe
id: 'automatic_releases'
./release/Dori-Setup.exe
id: "automatic_releases"
59 changes: 25 additions & 34 deletions electron-builder.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,35 @@
* @see https://www.electron.build/configuration/configuration
*/
{
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
"appId": "YourAppID",
"asar": true,
"productName": "Dori",
"directories": {
"output": "release/${version}"
$schema: "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
appId: "YourAppID",
asar: true,
productName: "Dori",
directories: {
output: "release/",
},
"files": [
"dist",
"dist-electron"
],
"mac": {
"target": [
"dmg"
],
"artifactName": "${productName}-Mac-${version}-Installer.${ext}"
files: ["dist", "dist-electron"],
mac: {
target: ["dmg"],
artifactName: "${productName}-Installer.${ext}",
},
"win": {
"target": [
win: {
target: [
{
"target": "nsis",
"arch": [
"x64"
]
}
target: "nsis",
arch: ["x64"],
},
],
"artifactName": "${productName}-Windows-${version}-Setup.${ext}"
artifactName: "${productName}-Setup.${ext}",
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false
nsis: {
oneClick: false,
perMachine: false,
allowToChangeInstallationDirectory: true,
deleteAppDataOnUninstall: false,
},
linux: {
target: ["AppImage"],
artifactName: "${productName}.${ext}",
},
"linux": {
"target": [
"AppImage"
],
"artifactName": "${productName}-Linux-${version}.${ext}"
}
}
Loading

0 comments on commit 0bde3a4

Please sign in to comment.