chore: github action and renaming

This commit is contained in:
2023-06-04 21:40:57 +02:00
parent ce45d2a4d9
commit bb78f66773
5 changed files with 51 additions and 10 deletions

41
.github/workflows/build-linux.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Build Linux packages
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 'Install all needed packages'
run: |
apt-get update
apt-get install git rpm dpkg fakeroot zip -y
- name: 'Enable corepack (yarn)'
run: 'corepack enable'
- name: 'Install npm packages'
run: 'yarn install'
- name: 'Make packages'
run: yarn make
- name: 'Upload artifacts'
uses: actions/upload-artifact@v3
with:
name: Build output
path: |
./out/make/deb/x64/*
./out/make/rpm/x64/*
./out/make/zip/linux/x64/*

View File

@@ -4,10 +4,6 @@ module.exports = {
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {},
},
{
name: '@electron-forge/maker-zip',
},
@@ -18,6 +14,10 @@ module.exports = {
icon: './icons/icon.png'
}
},
},
{
name: '@electron-forge/maker-rpm',
config: {}
}
],
};

View File

@@ -1,8 +1,8 @@
{
"name": "init-gui",
"productName": "init-gui",
"name": "sern-gui",
"productName": "sern-gui",
"version": "1.0.0",
"description": "A sern init gui to start your sern handler projects with ease",
"description": "A sern gui to start and manage your sern handler projects with ease!",
"main": "src/index.js",
"scripts": {
"start": "electron-forge start",

View File

@@ -7,7 +7,7 @@ body {
background-color: #1f1f1f;
}
#serninitheader {
#sernheader {
color: #4AF626;
text-align: center;
}

View File

@@ -5,10 +5,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./index.css">
<title>sern init</title>
<title>sern gui</title>
</head>
<body>
<h1 id="serninitheader">~$ sern init</h1>
<h1 id="sernheader">~$ sern</h1>
</body>
</html>