Skip to content

Commit 461d651

Browse files
authored
Merge pull request #7 from Hermesiss/develop
Auto update
2 parents 736c529 + 7d73d6f commit 461d651

13 files changed

Lines changed: 602 additions & 89 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
path: |
6666
${{ steps.find-installer.outputs.installer_path }}
6767
dist/DevNullifier-win-unpacked.zip
68+
dist/latest.yml
6869
6970
build-linux:
7071
if: github.event_name == 'push' || (github.ref_name == 'develop' || github.ref_name == 'main' || startsWith(github.ref_name, 'feature/'))
@@ -204,6 +205,16 @@ jobs:
204205
asset_name: ${{ github.ref_name == 'develop' && 'DevNullifier-Setup-dev.exe' || 'DevNullifier-Setup.exe' }}
205206
asset_content_type: application/octet-stream
206207

208+
- name: Upload latest.yml
209+
uses: actions/upload-release-asset@v1
210+
env:
211+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
212+
with:
213+
upload_url: ${{ steps.create_release.outputs.upload_url }}
214+
asset_path: artifacts/windows/latest.yml
215+
asset_name: latest.yml
216+
asset_content_type: text/yaml
217+
207218
- name: Upload Windows ZIP Archive
208219
uses: actions/upload-release-asset@v1
209220
env:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to DevNullifier will be documented in this file.
44

5+
## [1.2.4] - Update Service
6+
7+
### Added
8+
9+
- **Update Service**: Check for updates and download them
10+
511
## [1.2.3] - Quick scan
612

713
### Added

package-lock.json

Lines changed: 108 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devnullifier",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "DevNullifier: Clean application data, dev caches (node_modules, .cache, Library, Binary, Intermediate, etc) with Electron, Vue 3, and Vuetify 3.",
55
"main": "dist-main/main/main.js",
66
"scripts": {
@@ -23,7 +23,8 @@
2323
"test:watch:main": "vitest -c vitest.main.config.ts",
2424
"test:coverage": "npm run test:coverage:renderer && npm run test:coverage:main",
2525
"test:coverage:renderer": "vitest run --coverage",
26-
"test:coverage:main": "vitest run -c vitest.main.config.ts --coverage"
26+
"test:coverage:main": "vitest run -c vitest.main.config.ts --coverage",
27+
"release": "electron-builder --publish always"
2728
},
2829
"keywords": [
2930
"electron",
@@ -70,6 +71,8 @@
7071
},
7172
"dependencies": {
7273
"@mdi/font": "^7.4.0",
74+
"electron-log": "^5.4.1",
75+
"electron-updater": "^6.6.2",
7376
"filesize": "^10.1.0",
7477
"humanize-duration": "^3.29.0",
7578
"vue": "^3.4.0",
@@ -86,6 +89,12 @@
8689
"dist-main/**/*",
8790
"package.json"
8891
],
92+
"publish": {
93+
"provider": "github",
94+
"owner": "Hermesiss",
95+
"repo": "DevNullifier",
96+
"releaseType": "release"
97+
},
8998
"win": {
9099
"target": [
91100
{

src/main/__tests__/appDataCleaner.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { promises as fs } from "fs";
22
import fsSync, { Dirent } from "fs";
3-
import path from "path";
43
import os from "os";
54
import { vi, describe, it, expect, beforeEach } from "vitest";
65
import { getAppDataPaths, deleteDirectory } from "../appDataCleaner";
7-
import { getDirectorySize as getDirectorySizeInternal } from "../appDataCleaner";
86

97
// Mock modules
108
vi.mock("fs", () => ({

0 commit comments

Comments
 (0)