From bb78f66773ff242befcfd80b0d050d8ffc52121e Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 4 Jun 2023 21:40:57 +0200 Subject: [PATCH] chore: github action and renaming --- .github/workflows/build-linux.yml | 41 +++++++++++++++++++++++++++++++ forge.config.js | 8 +++--- package.json | 6 ++--- src/public/index.css | 2 +- src/public/index.html | 4 +-- 5 files changed, 51 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/build-linux.yml diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml new file mode 100644 index 0000000..e7a7a9b --- /dev/null +++ b/.github/workflows/build-linux.yml @@ -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/* \ No newline at end of file diff --git a/forge.config.js b/forge.config.js index a840acb..34dffa2 100644 --- a/forge.config.js +++ b/forge.config.js @@ -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: {} } ], }; diff --git a/package.json b/package.json index 7ff85a0..e462608 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/public/index.css b/src/public/index.css index fd7c2d2..af531ef 100644 --- a/src/public/index.css +++ b/src/public/index.css @@ -7,7 +7,7 @@ body { background-color: #1f1f1f; } -#serninitheader { +#sernheader { color: #4AF626; text-align: center; } \ No newline at end of file diff --git a/src/public/index.html b/src/public/index.html index fb47f95..1fc7f51 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -5,10 +5,10 @@ - sern init + sern gui -

~$ sern init

+

~$ sern

\ No newline at end of file