Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Added farmr_package.dart/.exe for .deb and .rpm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
gilnobrega committed Jun 18, 2021
1 parent 2b067f0 commit fb59377
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ meta:
maintainer: farmr
files:
"/usr/bin/farmr":
file: farmr
file: farmr_package
mode: "0755"
user: "root"
"/usr/bin/farmr-foxypoolog":
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
./dart-aarch64/dart-sdk/bin/dart pub get
./dart-aarch64/dart-sdk/bin/dart run environment_config:generate
./dart-aarch64/dart-sdk/bin/dart compile exe farmr.dart
./dart-aarch64/dart-sdk/bin/dart compile exe farmr_package.dart
./farmr.exe harvester onetime
- name: Compile x86_64
Expand All @@ -81,12 +82,14 @@ jobs:
./dart-x86_64/dart-sdk/bin/dart pub get
./dart-x86_64/dart-sdk/bin/dart run environment_config:generate
./dart-x86_64/dart-sdk/bin/dart compile exe farmr.dart
./dart-x86_64/dart-sdk/bin/dart compile exe farmr_package.dart
./farmr.exe harvester onetime
- name: Renames farmr binary
run: |
chmod +x ./farmr.exe
mv ./farmr.exe ./farmr
mv ./farmr_package.exe ./farmr_package
- name: Copying default config.json
run: cp config.json config.json.default
Expand Down
2 changes: 1 addition & 1 deletion environment_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ environment_config:
fields: # set of fields for command
version: # key name
const: true # optional, default to TRUE
default: 1.4.0.4 # optional, default value for key, if not provided key will be required during command run
default: 1.4.0.5dev1 # optional, default value for key, if not provided key will be required during command run
dotenv: true # optional, default to FALSE, if this field should be added to .env file

6 changes: 6 additions & 0 deletions farmr_package.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'farmr.dart' as Client;

//launches farmr client in hpool mode
main(List<String> args) {
Client.main(["package"] + args);
}

0 comments on commit fb59377

Please sign in to comment.