Skip to content

Commit 6cbf646

Browse files
authored
2.2.3 Switching to electron builder
- Applied eslinter - Removed electron packager - Added electron builder - Added electron updater - Introduced installer for windows
2 parents d08871e + 929b631 commit 6cbf646

File tree

16 files changed

+3873
-1732
lines changed

16 files changed

+3873
-1732
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
extends: [
77
'airbnb-base',
88
],
9-
rules: {
9+
rules: {
1010
'no-console': 0,
1111
'import/no-unresolved': 0,
1212
},

.github/workflows/releaser.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/tester.yml

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,25 @@ on:
77
- dev
88

99
jobs:
10-
build-nix:
10+
build:
1111
name: Test Build ${{ matrix.os }}
12-
runs-on: ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [macos-latest, ubuntu-latest]
15+
os: [macos-latest, ubuntu-latest, windows-latest]
1616
steps:
1717
- name: Download Repository
1818
uses: actions/checkout@v2
1919
- name: Install Modules
2020
run: npm install
2121
- name: Package
22-
run: npm run package
23-
- name: Tar files
24-
run: tar -cvf monolith-code_${{ matrix.os }}.tar monolith-code-*/
22+
run: npm run package
23+
env:
24+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2525
- name: Upload
2626
uses: actions/upload-artifact@v3
2727
with:
28-
name: monolith-code_${{ matrix.os }}
29-
path: monolith-code_${{ matrix.os }}.tar
30-
31-
build-win:
32-
name: Test Build ${{ matrix.os }}
33-
runs-on: ${{ matrix.os }}
34-
strategy:
35-
matrix:
36-
os: [windows-latest]
37-
steps:
38-
- name: Download Repository
39-
uses: actions/checkout@v2
40-
- name: Install Modules
41-
run: npm install
42-
- name: Package
43-
run: npm run package
44-
- name: Upload
45-
uses: actions/upload-artifact@v3
46-
with:
47-
name: monolith-code_${{ matrix.os }}
48-
path: monolith-code-*/
28+
name: ${{ matrix.os }}_artifacts
29+
path: |
30+
dist/monolith-code*
31+
dist/latest.yml

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<h1><img src="./res/img/icon.png" height="24"> monolith code</h1>
22

3-
[![Build](https://github.com/Haeri/MonolithCode2/actions/workflows/releaser.yml/badge.svg)](https://github.com/Haeri/MonolithCode2/actions/workflows/releaser.yml)
4-
[![Version](https://img.shields.io/badge/dynamic/json?url=https://raw.githubusercontent.com/Haeri/MonolithCode2/master/package.json&label=version&query=$['version']&color=blue)](https://github.com/Haeri/MonolithCode2/releases/latest)
5-
[![License](https://img.shields.io/github/license/haeri/MonolithCode2.svg)](https://github.com/Haeri/MonolithCode2/blob/master/LICENSE)
3+
[![Build](https://github.com/Haeri/monolithcode/actions/workflows/releaser.yml/badge.svg)](https://github.com/Haeri/monolithcode/actions/workflows/releaser.yml)
4+
[![Version](https://img.shields.io/badge/dynamic/json?url=https://raw.githubusercontent.com/Haeri/monolithcode/master/package.json&label=version&query=$['version']&color=blue)](https://github.com/Haeri/monolithcode/releases/latest)
5+
[![License](https://img.shields.io/github/license/haeri/monolithcode.svg)](https://github.com/Haeri/monolithcode/blob/master/LICENSE)
66

77
minimalistic but powerful code editor
88

build/icon.icns

44.5 KB
Binary file not shown.

build/icon.ico

14.6 KB
Binary file not shown.

build/icon.png

28.8 KB
Loading

docs/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>monolith code 2</title>
5+
<title>monolith code</title>
66
<link rel="shortcut icon" href="res/img/icon.ico">
77
<style>
88
@font-face {
@@ -115,14 +115,14 @@ <h3>minimalistic but powerful code editor</h3>
115115
<span>latest version <span id="version_insert"></span></span>
116116
</div>
117117
<div class="dl-panel">
118-
<a href="https://github.com/Haeri/MonolithCode2/releases/latest/download/monolith-code_win.zip" class="download-btn">
118+
<a href="https://github.com/Haeri/monolithcode/releases/latest/download/monolith-code_win.zip" class="download-btn">
119119
<i data-feather="download"></i>
120120
<span><strong>Download</strong><br>for windows</span>
121121
</a>
122-
<a href="https://github.com/Haeri/MonolithCode2/releases/latest/download/monolith-code_linux.tar" class="download-btn"><i data-feather="download"></i>
122+
<a href="https://github.com/Haeri/monolithcode/releases/latest/download/monolith-code_linux.tar" class="download-btn"><i data-feather="download"></i>
123123
<span><strong>Download</strong><br>for linux</span>
124124
</a>
125-
<a href="https://github.com/Haeri/MonolithCode2/releases/latest/download/monolith-code_mac.tar" class="download-btn"><i data-feather="download"></i>
125+
<a href="https://github.com/Haeri/monolithcode/releases/latest/download/monolith-code_mac.tar" class="download-btn"><i data-feather="download"></i>
126126
<span><strong>Download</strong><br>for macOS</span>
127127
</a>
128128
</div>
@@ -132,7 +132,7 @@ <h3>minimalistic but powerful code editor</h3>
132132
<script src="res/js/feather.min.js"></script>
133133
<script>
134134
function initLatestVersion(){
135-
fetch('https://api.github.com/repos/Haeri/MonolithCode2/releases/latest')
135+
fetch('https://api.github.com/repos/Haeri/monolithcode/releases/latest')
136136
.then(response => response.json())
137137
.then(data => document.getElementById("version_insert").innerHTML = data.tag_name);
138138
}

0 commit comments

Comments
 (0)