Skip to content

Commit ca44c1e

Browse files
remove token stuff
1 parent 394f8e7 commit ca44c1e

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

.github/workflows/create_artifacts.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ jobs:
2222
- name: Enable desktop support
2323
run: flutter config --enable-windows-desktop
2424
- name: Build Windows app
25-
env:
26-
TOKEN: ${{ secrets.TOKEN }}
27-
run: flutter build windows --dart-define="TOKEN="$TOKEN""
25+
run: flutter build windows
2826
- name: Copy VC redistributables
2927
run: |
3028
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140.dll') .
@@ -54,9 +52,7 @@ jobs:
5452
flutter config --enable-linux-desktop
5553
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
5654
- name: Build Linux app
57-
env:
58-
TOKEN: ${{ secrets.TOKEN }}
59-
run: flutter build linux --dart-define="TOKEN="$TOKEN""
55+
run: flutter build linux
6056
- name: Create artifact
6157
uses: actions/upload-artifact@v2
6258
with:

.github/workflows/create_releases.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ jobs:
1818
- name: Enable desktop support
1919
run: flutter config --enable-windows-desktop
2020
- name: Build Windows app
21-
env:
22-
TOKEN: ${{ secrets.TOKEN }}
23-
run: flutter build windows --dart-define="TOKEN="$TOKEN""
21+
run: flutter build windows
2422
- name: Copy VC redistributables
2523
run: |
2624
Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140.dll') .
@@ -52,9 +50,7 @@ jobs:
5250
flutter config --enable-linux-desktop
5351
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
5452
- name: Build Linux app
55-
env:
56-
TOKEN: ${{ secrets.TOKEN }}
57-
run: flutter build linux --dart-define="TOKEN="$TOKEN""
53+
run: flutter build linux
5854
- name: Create zip
5955
uses: papeloto/action-zip@v1
6056
with:

lib/bloc/updater_bloc/updater_bloc.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ class UpdaterBloc extends Bloc<UpdaterEvent, UpdaterState> {
2121
var url = Uri.parse(URL);
2222
String changelog = '';
2323
int currentVersionIndex = 0;
24-
http.Response response = await http.get(url, headers: {
25-
'Authorization': String.fromEnvironment('TOKEN'),
26-
});
24+
http.Response response = await http.get(url);
2725
var data = jsonDecode(response.body);
2826
for (var i = 0; i < data.length; i++) {
2927
if (event.currentVersion ==

0 commit comments

Comments
 (0)