Skip to content

Commit 4b7fefc

Browse files
author
FileShot
committed
Initial commit - FileShot Desktop App v1.0.0
0 parents  commit 4b7fefc

17 files changed

Lines changed: 2694 additions & 0 deletions

.github/workflows/build.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: Build Desktop Apps
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-windows:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '18'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Build Windows
24+
run: npm run build:win
25+
26+
- name: Upload Windows artifacts
27+
uses: actions/upload-artifact@v3
28+
with:
29+
name: windows-installer
30+
path: dist/*.exe
31+
32+
build-macos:
33+
runs-on: macos-latest
34+
steps:
35+
- uses: actions/checkout@v3
36+
37+
- name: Setup Node.js
38+
uses: actions/setup-node@v3
39+
with:
40+
node-version: '18'
41+
42+
- name: Install dependencies
43+
run: npm ci
44+
45+
- name: Build macOS
46+
run: npm run build:mac
47+
env:
48+
CSC_IDENTITY_AUTO_DISCOVERY: false
49+
50+
- name: Upload macOS artifacts
51+
uses: actions/upload-artifact@v3
52+
with:
53+
name: macos-installer
54+
path: dist/*.dmg
55+
56+
build-linux:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v3
60+
61+
- name: Setup Node.js
62+
uses: actions/setup-node@v3
63+
with:
64+
node-version: '18'
65+
66+
- name: Install dependencies
67+
run: npm ci
68+
69+
- name: Build Linux
70+
run: npm run build:linux
71+
72+
- name: Upload Linux artifacts
73+
uses: actions/upload-artifact@v3
74+
with:
75+
name: linux-installer
76+
path: |
77+
dist/*.AppImage
78+
dist/*.deb
79+
dist/*.rpm
80+
81+
create-release:
82+
needs: [build-windows, build-macos, build-linux]
83+
runs-on: ubuntu-latest
84+
if: startsWith(github.ref, 'refs/tags/')
85+
steps:
86+
- name: Download all artifacts
87+
uses: actions/download-artifact@v3
88+
89+
- name: Create Release
90+
uses: softprops/action-gh-release@v1
91+
with:
92+
files: |
93+
windows-installer/*
94+
macos-installer/*
95+
linux-installer/*
96+
env:
97+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Dependencies
2+
node_modules/
3+
package-lock.json
4+
yarn.lock
5+
6+
# Build output
7+
dist/
8+
build/
9+
out/
10+
11+
# Electron
12+
.electron/
13+
*.log
14+
15+
# OS files
16+
.DS_Store
17+
Thumbs.db
18+
desktop.ini
19+
20+
# IDE
21+
.vscode/
22+
.idea/
23+
*.swp
24+
*.swo
25+
26+
# Environment
27+
.env
28+
.env.local
29+
30+
# Certificates (keep private!)
31+
*.pfx
32+
*.p12
33+
*.pem
34+
*.key
35+
certificates/
36+
37+
# Temporary files
38+
*.tmp
39+
*.temp

0 commit comments

Comments
 (0)