Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Jun 15, 2024
1 parent 3de28f9 commit f93ed02
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 87 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build & Test

on: [push]

jobs:
build_and_test:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
id: snapcraft
uses: snapcore/action-build@v1

- uses: actions/upload-artifact@v3
with:
name: snap
path: ${{ steps.snapcraft.outputs.snap }}
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
node_modules
dist
*.snap
*.user
build
Binary file not shown.
52 changes: 0 additions & 52 deletions main.js

This file was deleted.

15 changes: 0 additions & 15 deletions package.json

This file was deleted.

19 changes: 2 additions & 17 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: icloud-for-linux
version: '0.13'
version: '0.14'
summary: iCloud for Linux
description: iCloud for Linux

Expand All @@ -9,23 +9,8 @@ base: core20

parts:
icloud-for-linux:
plugin: nil
plugin: cmake
source: .
override-build: |
npm install electron electron-packager
npx electron-packager . --overwrite --platform=linux --output=release-build --prune=true
cp -rv ./icloud-for-linux-linux-* $SNAPCRAFT_PART_INSTALL/icloud-for-linux
chmod +xr $SNAPCRAFT_PART_INSTALL/icloud-for-linux
build-snaps:
- node/16/stable
build-packages:
- unzip
stage-packages:
- libnss3
- libnspr4
dump:
source: dump
plugin: dump

apps:
mail:
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ int main(int, char **argv)
{
choc::ui::DesktopWindow appWin(choc::ui::Bounds{0, 0, 0, 0});
appWin.centreWithSize(1000, 600);
appWin.setWindowTitle( "iCloud" );
appWin.windowClosed = []()
{ choc::messageloop::stop(); };

Expand Down

0 comments on commit f93ed02

Please sign in to comment.