Skip to content

Commit

Permalink
v1.0.3 dev/main
Browse files Browse the repository at this point in the history
  • Loading branch information
iAkashPattnaik authored Nov 10, 2021
2 parents fe9daf9 + c70d5dc commit f2972aa
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 28 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/dart.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Linux

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603

- name: Install dependencies
run: dart pub get

- name: Build Source
run: dart compile exe bin/ultroid_cli.dart -DDEBUG=false -o ./ultroid-linux

- name: Upload UltrodiCli For Linux
uses: actions/[email protected]
with:
name: ultorid-linux
path: ultroid-linux
31 changes: 31 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build MacOS

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603

- name: Install dependencies
run: dart pub get

- name: Build Source
run: dart compile exe bin/ultroid_cli.dart -DDEBUG=false -o ./ultroid-macos

- name: Upload UltrodiCli For MacOS
uses: actions/[email protected]
with:
name: ultorid-macos
path: ultroid-macos
31 changes: 31 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Windows

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603

- name: Install dependencies
run: dart pub get

- name: Build Source
run: dart compile exe bin/ultroid_cli.dart -DDEBUG=false -o ./ultroid-win.exe

- name: Upload UltrodiCli For Windows
uses: actions/[email protected]
with:
name: ultorid-win.exe
path: ultroid-win.exe
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.0.3
- Fix `env` bug
- Update docs for `env`
- Automate build for `linux`, `windows` and `MacOS` with github actions.

## 1.0.2
- Add `sessionGen` function
- Automate `build`
Expand Down
6 changes: 3 additions & 3 deletions bin/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:io';
import 'package:colorize/colorize.dart';

void main(List<String> args) async {
print("Building sessionGen Executable [ ${Colorize('Python').lightGreen()} ]");
print("Building sessionGen Executable [ ${Colorize('Python').lightGreen()} ] [ ${Colorize('Windows').cyan()} ]");
if (Directory('./src/build').existsSync()) {
Directory('./src/build').deleteSync(recursive: true);
}
Expand All @@ -21,11 +21,11 @@ void main(List<String> args) async {
workingDirectory: Directory('./src/').absolute.uri.toFilePath()
);
print("Built sessionGen Executable [ ${Colorize('Python').cyan()} ] ✔️");
print("Building ultroid_cli Executable [ ${Colorize('Dart').lightGreen()} ]");
print("Building ultroid_cli Executable [ ${Colorize('Dart').lightGreen()} ] [ ${Colorize('Windows').cyan()} ]");
Process.runSync('dart',
['compile', 'exe', 'bin\\ultroid_cli.dart', '-DDEBUG=false', '-o', 'build/ultroid.exe'],
runInShell: true,
workingDirectory: Directory('.').absolute.uri.toFilePath()
);
print("Built ultroid_cli Executable [ ${Colorize('Python').cyan()} ] ✔️");
print("Built ultroid_cli Executable [ ${Colorize('Dart').cyan()} ] ✔️");
}
2 changes: 1 addition & 1 deletion lib/init.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:ultroid_cli/version.dart';
// PLease read the GNU Affero General Public License in
// <https://www.github.com/BLUE-DEVIL1134/UltroidCli/blob/main/LICENSE/>.

String selfVersion = '1.0.2';
String selfVersion = '1.0.3';

void init() async {
if (Platform.isWindows) {
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void ultroidCliVersion() async {
var req = await get(
Uri.parse('https://raw.githubusercontent.com/BLUE-DEVIL1134/UltroidCli/main/version.txt'),
);
if (req.body.trim() != '1.0.2') {
if (req.body.trim() != '1.0.3') {
print(
" ${Colorize('╔══════════════════════════════════════════════════════════════════════════╗').cyan()}\n"
" ${Colorize('║').cyan()} A new version of UltroidCli is available! ${Colorize('║').cyan()}\n"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ultroid_cli
description: A command-line interface for Ultroid.
version: 1.0.2
version: 1.0.3
icon: icon.ico
lisence: GNU Affero General Public
homepage: https://github.com/BLUE-DEVIL1134/UltroidCli
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2
1.0.3

0 comments on commit f2972aa

Please sign in to comment.