Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
share121 committed Oct 3, 2024
1 parent 3f4b617 commit ee921b9
Show file tree
Hide file tree
Showing 86 changed files with 1,434 additions and 2,426 deletions.
1 change: 0 additions & 1 deletion .github/workflows/flutter_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:

- run: dart gen_secrets.dart
env:
PWD: ${{ secrets.PWD }}
PEM: ${{ secrets.PEM }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
workflow_dispatch:

env:
PWD: ${{ secrets.PWD }}
PEM: ${{ secrets.PEM }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
Expand Down Expand Up @@ -89,7 +88,7 @@ jobs:

- run: mv build/ios/iphoneos/Runner.app Payload/inter_knot_ios.app

- run: zip -r inter_knot_ios.ipa Payload
- run: zip -r9 inter_knot_ios.ipa Payload

- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -138,10 +137,12 @@ jobs:

- run: flutter build linux

- run: zip -r9 inter_knot_linux.zip build/linux/x64/release/bundle

- uses: actions/upload-artifact@v4
with:
name: inter_knot_linux
path: build/linux/x64/release/bundle
path: inter_knot_linux.zip

build_web:
name: Web Client
Expand Down Expand Up @@ -214,7 +215,6 @@ jobs:
with:
name: inter_knot_linux
path: inter_knot_linux
- run: zip -r inter_knot_linux.zip inter_knot_linux

- uses: actions/download-artifact@v4
with:
Expand All @@ -233,6 +233,6 @@ jobs:
files: |
inter_knot_windows_x64_boxed/inter_knot_windows_x64_boxed.exe
inter_knot_apk/inter_knot_android.apk
inter_knot_linux.zip
inter_knot_linux/inter_knot_linux.zip
inter_knot_macos/inter_knot_macos.dmg
inter_knot_ios/inter_knot_ios.ipa
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ migrate_working_dir/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# .vscode/

.VSCodeCounter/

Expand All @@ -46,4 +46,4 @@ app.*.map.json
/android/app/profile
/android/app/release

lib/secret.dart
lib/secret.dart
25 changes: 25 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"files.exclude": {
// ".idea": true,
// "android": true,
// "ios": true,
// "linux": true,
// "macos": true,
// "web": true,
// "windows": true,
// ".dart_tool": true,
// "enigmavbconsole.exe": true,
// "upload-keystore.jks": true,
// "pubspec.lock": true,
// "inter_knot.iml": true,
// ".flutter-plugins": true,
// ".flutter-plugins-dependencies": true,
// ".metadata": true,
// "icon.webp": true,
// "mac-installer-bg.png": true,
// "devtools_options.yaml": true,
// ".vscode": true,
// "build": true,
// "lib/gen": true
}
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 绳网

绳网是一个游戏、技术交流平台

## 感谢 🙏

- 打包 MacOS dmg 文件(感谢 [@Aetherr](https://github.com/AetherLude)
- 打包 iOS ipa 文件(感谢 [@Venti](https://github.com/Yizakl)
- ai 审核(感谢 [@浩彬](https://github.com/HKLHaoBin)
43 changes: 20 additions & 23 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# This file configures the analyzer to use the lint rule set from `package:lint`

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
include: package:lint/strict.yaml # For production apps
# include: package:lint/casual.yaml # For code samples, hackathons and other non-production code
# include: package:lint/package.yaml # Use this for packages with public API

# You might want to exclude auto-generated files from dart analysis
analyzer:
exclude:
#- '**.freezed.dart'
#- '**.g.dart'

# You can customize the lint rules set to your own liking. A list of all rules
# can be found at https://dart-lang.github.io/linter/lints/options/options.html
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# Util classes are awesome!
# avoid_classes_with_only_static_members: false

# Make constructors the first thing in every class
# sort_constructors_first: true

# Choose wisely, but you don't have to
# prefer_double_quotes: true
prefer_single_quotes: true
avoid_dynamic_calls: true
prefer_relative_imports: true
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
3 changes: 2 additions & 1 deletion gen_secrets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ void main() {
final clientId = Platform.environment['CLIENT_ID'];
final clientSecret = Platform.environment['CLIENT_SECRET'];
File('lib/secret.dart').writeAsString(
"import 'dart:convert'; final pem = String.fromCharCodes(base64Decode('$pem')); final clientId = String.fromCharCodes(base64Decode('$clientId')); final clientSecret = String.fromCharCodes(base64Decode('$clientSecret'));");
"import 'dart:convert';\nfinal pem = String.fromCharCodes(base64Decode('$pem'));\nfinal clientId = String.fromCharCodes(base64Decode('$clientId'));\nfinal clientSecret = String.fromCharCodes(base64Decode('$clientSecret'));",
);
}
Loading

0 comments on commit ee921b9

Please sign in to comment.