-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from lukegb/nix
- Loading branch information
Showing
10 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "Build" | ||
on: | ||
pull_request: | ||
push: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v18 | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: pebble | ||
skipPush: true | ||
- name: Perform build | ||
run: | | ||
set -euxo pipefail | ||
OUT_PATH="$(nix-build)" | ||
mkdir dist | ||
cp -r $OUT_PATH/* dist/ | ||
- name: Archive pbw | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: skunk.pbw | ||
path: dist/skunk.pbw | ||
- name: Archive appstore bundle | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: skunk-appstore-bundle.tar.gz | ||
path: dist/appstore-bundle.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
build | ||
.lock-waf* | ||
.lock-waf* | ||
result* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ pebbleDotNixSrc ? builtins.fetchTarball { | ||
url = "https://github.com/Sorixelle/pebble.nix/archive/a7be1fd6523b32f176a9558c7719beab94f9ba1c.tar.gz"; | ||
sha256 = "1x8izcv77biwx8l8ic57vfz72yg9p4v1k36f1z97lcl7631vyhy7"; | ||
} | ||
, pebbleDotNix ? import pebbleDotNixSrc | ||
, packageJSON ? builtins.fromJSON (builtins.readFile ./package.json) | ||
}: | ||
|
||
(pebbleDotNix.buildPebbleApp { | ||
inherit (packageJSON) name version; | ||
type = "watchapp"; | ||
src = ./.; | ||
|
||
category = "Tools & Utilities"; | ||
description = '' | ||
Skunk allows easy access to up to eight store cards and other barcodes. | ||
Linear Barcodes: Codabar, Code 39, Code 128, EAN-8, EAN-13, Interleaved 2 of 5 (ITF), UPC-A | ||
Matrix Barcodes: Aztec, Data Matrix, PDF417, QR | ||
''; | ||
|
||
releaseNotes = "Whoop."; | ||
|
||
screenshots = { | ||
all = [ "assets/screenshot_coffee.png" "assets/screenshot_flight.png" "assets/screenshot_loyalty.png" "assets/screenshot_supermarket.png" ]; | ||
}; | ||
banner = "assets/banner.png"; | ||
smallIcon = "assets/icon_small.png"; | ||
largeIcon = "assets/icon_large.png"; | ||
sourceUrl = "https://github.com/unlobito/skunk"; | ||
}) // { | ||
devShell = pebbleDotNix.pebbleEnv { }; | ||
} |