Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
springeye committed Jun 5, 2023
0 parents commit a2d23ce
Show file tree
Hide file tree
Showing 369 changed files with 20,440 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .flutter
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"enabled": false
}
4 changes: 4 additions & 0 deletions .flutter_tool_state
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"is-bot": true,
"license-hash": "3e8c85e63b26ce223cda96a9a8fbb410"
}
4 changes: 4 additions & 0 deletions .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutterSdkVersion": "3.10.0",
"flavors": {}
}
96 changes: 96 additions & 0 deletions .github/workflows/build.yml.backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Build
on: push
#on:
# workflow_dispatch:
# release:
# types: [created]

jobs:
build_macos:
if: ${{ false }}
runs-on: macos-latest
steps:
# Setup
- uses: actions/checkout@v3

- uses: subosito/flutter-action@v2
with:
channel: "stable"
# architecture: x64

- uses: actions/setup-node@v2

# Install packaging tools
- name: Install flutter_distributor
run: dart pub global activate flutter_distributor

- name: Install appdmg
run: npm install -g appdmg

# Build and package
- name: Packaging .dmg .zip
run: flutter_distributor package --platform macos --targets dmg,zip --artifact-name "fterm-${{github.ref_name}}-macos.{{ext}}"

# # Publish
# - name: Publish to GitHub Release
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# files: dist/*/*

build_windows:
runs-on: windows-latest
steps:
# Setup
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64

# Install packaging tools
- name: Install flutter_distributor
run: dart pub global activate flutter_distributor

# Build and package
- name: Packaging .msix .zip
run: flutter_distributor package --platform windows --targets msix,exe,zip --artifact-name "fterm-${{github.ref_name}}-windows.{{ext}}"

# # Publish
# - name: Publish to GitHub Release
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# files: dist/*/*

build_linux:
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64

- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev

# Install packaging tools
- name: Install flutter_distributor
run: dart pub global activate flutter_distributor

# Build and package
- name: Packaging .deb .zip
run: flutter_distributor package --platform linux --targets deb,zip --artifact-name "fterm-${{github.ref_name}}-linux.{{ext}}"

# # Publish
# - name: Publish to GitHub Release
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# files: dist/*/*
119 changes: 119 additions & 0 deletions .github/workflows/build_zip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Build
on:
workflow_dispatch:
release:
types: [created]
push:
branches:
- master
# tags:
# - v*.*.*
jobs:
build_macos:
permissions:
contents: write
runs-on: macos-latest
steps:
# Setup
- uses: actions/checkout@v3

- uses: subosito/flutter-action@v2
with:
channel: "stable"

- name: Install project dependencies
run: flutter pub get
- name: Generate intermediates
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Enable macos build
run: flutter config --enable-macos-desktop
- name: Build artifacts
run: flutter build macos --release
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: fterm-${{github.ref_name}}-macos.zip
directory: build/macos/Build/Products/Release
- name: MaoOS Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/macos/Build/Products/Release/fterm-${{github.ref_name}}-macos.zip


build_windows:
permissions:
contents: write
runs-on: windows-latest
steps:
# Setup
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64


- name: Install project dependencies
run: flutter pub get
- name: Generate intermediates
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Enable windows build
run: flutter config --enable-windows-desktop
- name: Build artifacts
run: flutter build windows --release
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: fterm-${{github.ref_name}}-windows.zip
directory: build/windows/runner/Release
- name: Windows Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/windows/runner/Release/fterm-${{github.ref_name}}-windows.zip


build_linux:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64

- run: |
sudo apt-get update -y
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libjsoncpp-dev libsecret-1-dev
- name: Install project dependencies
run: flutter pub get
- name: Generate intermediates
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Enable linux build
run: flutter config --enable-linux-desktop
- name: Build artifacts
run: flutter build linux --release
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: fterm-${{github.ref_name}}-linux.zip
directory: build/linux/x64/release/bundle
- name: Linux Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/linux/x64/release/bundle/fterm-${{github.ref_name}}-linux.zip
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# 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/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
.fvm/flutter_sdk
.idea
target
/dist
2 changes: 2 additions & 0 deletions .linux.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
http_proxy=http://192.168.50.247:7890
https_proxy=http://192.168.50.247:7890
2 changes: 2 additions & 0 deletions .mac.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
http_proxy=http://192.168.60.14:7890
https_proxy=http://192.168.60.14:7890
36 changes: 36 additions & 0 deletions .metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.

version:
revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
channel: stable

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
base_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
- platform: linux
create_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
base_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
- platform: macos
create_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
base_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
- platform: windows
create_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
base_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
2 changes: 2 additions & 0 deletions .windows.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
http_proxy=http://192.168.50.247:7890
https_proxy=http://192.168.50.247:7890
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
gen:
fvm flutter pub run build_runner build --delete-conflicting-outputs

check_update:
fvm flutter pub upgrade --major-versions
fvm flutter pub get
clean:
fvm flutter clean
windows: clean
act --container-architecture linux/amd64 --env-file .windows.env -P windows-latest=-self-hosted -j build_windows
macos: clean
act --container-architecture linux/amd64 --env-file .macos.env -P macos-latest=-self-hosted -j build_macos
linux: clean
act --container-architecture linux/amd64 --env-file .linux.env -P ubuntu-latest=-self-hosted -j build_linux
init:
cargo install flutter_rust_bridge_codegen
cargo install cargo-xcode
cargo install cargo-make
act:
act --container-architecture linux/amd64 --env-file .env
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# fterm

fterm是一款基于Flutter开发的跨平台终端工具

# 功能
- [x] 本地终端
- [x] 多种主题颜色
- [x] ssh主机连接
- [x] ssh配置本地加密存储
- [x] 通过ssh跳板机连接目标主机
- [x] 支持zmodem
- [ ] ssh配置多端同步



# 部分截图
![fterm1](resources/fterm1.png)
![fterm2](resources/fterm2.png)
![fterm3](resources/fterm3.png)
![fterm4](resources/fterm4.png)
![fterm5](resources/fterm5.png)
![fterm6](resources/fterm6.png)
Loading

0 comments on commit a2d23ce

Please sign in to comment.