正在显示
6 个修改的文件
包含
171 行增加
和
346 行删除
.github/workflows/release-dart-package.yaml
0 → 100644
| 1 | +name: release-dart | ||
| 2 | + | ||
| 3 | +on: | ||
| 4 | + push: | ||
| 5 | + branches: | ||
| 6 | + - ci-pub-dart | ||
| 7 | + tags: | ||
| 8 | + - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v{{version}}' | ||
| 9 | + | ||
| 10 | + workflow_dispatch: | ||
| 11 | + | ||
| 12 | +concurrency: | ||
| 13 | + group: release-dart-${{ github.ref }} | ||
| 14 | + cancel-in-progress: true | ||
| 15 | + | ||
| 16 | +jobs: | ||
| 17 | + release_dart: | ||
| 18 | + permissions: | ||
| 19 | + id-token: write # Required for authentication using OIDC | ||
| 20 | + name: Release dart | ||
| 21 | + runs-on: ubuntu-latest | ||
| 22 | + | ||
| 23 | + steps: | ||
| 24 | + - uses: actions/checkout@v4 | ||
| 25 | + | ||
| 26 | + - name: Setup Flutter SDK | ||
| 27 | + uses: flutter-actions/setup-flutter@v3 | ||
| 28 | + with: | ||
| 29 | + channel: stable | ||
| 30 | + version: latest | ||
| 31 | + | ||
| 32 | + - uses: dart-lang/setup-dart@v1 | ||
| 33 | + | ||
| 34 | + - name: Copy pre-build libs | ||
| 35 | + shell: bash | ||
| 36 | + run: | | ||
| 37 | + cd scripts/dart | ||
| 38 | + ./release.sh | ||
| 39 | + cd ../.. | ||
| 40 | + | ||
| 41 | + mv -v sherpa-onnx/flutter /tmp/to-be-published | ||
| 42 | + | ||
| 43 | + cp -v README.md /tmp/to-be-published | ||
| 44 | + | ||
| 45 | + - name: Release | ||
| 46 | + shell: bash | ||
| 47 | + run: | | ||
| 48 | + cd /tmp/to-be-published | ||
| 49 | + flutter pub get | ||
| 50 | + flutter pub publish --dry-run | ||
| 51 | + flutter pub publish --force |
| 1 | # Generated by pub | 1 | # Generated by pub |
| 2 | # See https://dart.dev/tools/pub/glossary#lockfile | 2 | # See https://dart.dev/tools/pub/glossary#lockfile |
| 3 | packages: | 3 | packages: |
| 4 | - _fe_analyzer_shared: | ||
| 5 | - dependency: transitive | ||
| 6 | - description: | ||
| 7 | - name: _fe_analyzer_shared | ||
| 8 | - sha256: "5aaf60d96c4cd00fe7f21594b5ad6a1b699c80a27420f8a837f4d68473ef09e3" | ||
| 9 | - url: "https://pub.dev" | ||
| 10 | - source: hosted | ||
| 11 | - version: "68.0.0" | ||
| 12 | - _macros: | ||
| 13 | - dependency: transitive | ||
| 14 | - description: dart | ||
| 15 | - source: sdk | ||
| 16 | - version: "0.1.0" | ||
| 17 | - analyzer: | ||
| 18 | - dependency: transitive | ||
| 19 | - description: | ||
| 20 | - name: analyzer | ||
| 21 | - sha256: "21f1d3720fd1c70316399d5e2bccaebb415c434592d778cce8acb967b8578808" | ||
| 22 | - url: "https://pub.dev" | ||
| 23 | - source: hosted | ||
| 24 | - version: "6.5.0" | ||
| 25 | args: | 4 | args: |
| 26 | - dependency: transitive | 5 | + dependency: "direct main" |
| 27 | description: | 6 | description: |
| 28 | name: args | 7 | name: args |
| 29 | sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" | 8 | sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" |
| 30 | url: "https://pub.dev" | 9 | url: "https://pub.dev" |
| 31 | source: hosted | 10 | source: hosted |
| 32 | version: "2.5.0" | 11 | version: "2.5.0" |
| 33 | - async: | 12 | + characters: |
| 34 | dependency: transitive | 13 | dependency: transitive |
| 35 | description: | 14 | description: |
| 36 | - name: async | ||
| 37 | - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" | 15 | + name: characters |
| 16 | + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" | ||
| 38 | url: "https://pub.dev" | 17 | url: "https://pub.dev" |
| 39 | source: hosted | 18 | source: hosted |
| 40 | - version: "2.11.0" | ||
| 41 | - boolean_selector: | ||
| 42 | - dependency: transitive | ||
| 43 | - description: | ||
| 44 | - name: boolean_selector | ||
| 45 | - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" | ||
| 46 | - url: "https://pub.dev" | ||
| 47 | - source: hosted | ||
| 48 | - version: "2.1.1" | 19 | + version: "1.3.0" |
| 49 | collection: | 20 | collection: |
| 50 | dependency: transitive | 21 | dependency: transitive |
| 51 | description: | 22 | description: |
| @@ -54,86 +25,19 @@ packages: | @@ -54,86 +25,19 @@ packages: | ||
| 54 | url: "https://pub.dev" | 25 | url: "https://pub.dev" |
| 55 | source: hosted | 26 | source: hosted |
| 56 | version: "1.18.0" | 27 | version: "1.18.0" |
| 57 | - convert: | ||
| 58 | - dependency: transitive | ||
| 59 | - description: | ||
| 60 | - name: convert | ||
| 61 | - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" | ||
| 62 | - url: "https://pub.dev" | ||
| 63 | - source: hosted | ||
| 64 | - version: "3.1.1" | ||
| 65 | - coverage: | ||
| 66 | - dependency: transitive | ||
| 67 | - description: | ||
| 68 | - name: coverage | ||
| 69 | - sha256: "3945034e86ea203af7a056d98e98e42a5518fff200d6e8e6647e1886b07e936e" | ||
| 70 | - url: "https://pub.dev" | ||
| 71 | - source: hosted | ||
| 72 | - version: "1.8.0" | ||
| 73 | - crypto: | ||
| 74 | - dependency: transitive | ||
| 75 | - description: | ||
| 76 | - name: crypto | ||
| 77 | - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab | ||
| 78 | - url: "https://pub.dev" | ||
| 79 | - source: hosted | ||
| 80 | - version: "3.0.3" | ||
| 81 | - file: | 28 | + ffi: |
| 82 | dependency: transitive | 29 | dependency: transitive |
| 83 | description: | 30 | description: |
| 84 | - name: file | ||
| 85 | - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" | ||
| 86 | - url: "https://pub.dev" | ||
| 87 | - source: hosted | ||
| 88 | - version: "7.0.0" | ||
| 89 | - frontend_server_client: | ||
| 90 | - dependency: transitive | ||
| 91 | - description: | ||
| 92 | - name: frontend_server_client | ||
| 93 | - sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 | ||
| 94 | - url: "https://pub.dev" | ||
| 95 | - source: hosted | ||
| 96 | - version: "4.0.0" | ||
| 97 | - glob: | ||
| 98 | - dependency: transitive | ||
| 99 | - description: | ||
| 100 | - name: glob | ||
| 101 | - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" | 31 | + name: ffi |
| 32 | + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" | ||
| 102 | url: "https://pub.dev" | 33 | url: "https://pub.dev" |
| 103 | source: hosted | 34 | source: hosted |
| 104 | version: "2.1.2" | 35 | version: "2.1.2" |
| 105 | - http_multi_server: | ||
| 106 | - dependency: transitive | ||
| 107 | - description: | ||
| 108 | - name: http_multi_server | ||
| 109 | - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" | ||
| 110 | - url: "https://pub.dev" | ||
| 111 | - source: hosted | ||
| 112 | - version: "3.2.1" | ||
| 113 | - http_parser: | 36 | + flutter: |
| 114 | dependency: transitive | 37 | dependency: transitive |
| 115 | - description: | ||
| 116 | - name: http_parser | ||
| 117 | - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" | ||
| 118 | - url: "https://pub.dev" | ||
| 119 | - source: hosted | ||
| 120 | - version: "4.0.2" | ||
| 121 | - io: | ||
| 122 | - dependency: transitive | ||
| 123 | - description: | ||
| 124 | - name: io | ||
| 125 | - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" | ||
| 126 | - url: "https://pub.dev" | ||
| 127 | - source: hosted | ||
| 128 | - version: "1.0.4" | ||
| 129 | - js: | ||
| 130 | - dependency: transitive | ||
| 131 | - description: | ||
| 132 | - name: js | ||
| 133 | - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf | ||
| 134 | - url: "https://pub.dev" | ||
| 135 | - source: hosted | ||
| 136 | - version: "0.7.1" | 38 | + description: flutter |
| 39 | + source: sdk | ||
| 40 | + version: "0.0.0" | ||
| 137 | lints: | 41 | lints: |
| 138 | dependency: "direct dev" | 42 | dependency: "direct dev" |
| 139 | description: | 43 | description: |
| @@ -142,261 +46,51 @@ packages: | @@ -142,261 +46,51 @@ packages: | ||
| 142 | url: "https://pub.dev" | 46 | url: "https://pub.dev" |
| 143 | source: hosted | 47 | source: hosted |
| 144 | version: "3.0.0" | 48 | version: "3.0.0" |
| 145 | - logging: | 49 | + material_color_utilities: |
| 146 | dependency: transitive | 50 | dependency: transitive |
| 147 | description: | 51 | description: |
| 148 | - name: logging | ||
| 149 | - sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" | 52 | + name: material_color_utilities |
| 53 | + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" | ||
| 150 | url: "https://pub.dev" | 54 | url: "https://pub.dev" |
| 151 | source: hosted | 55 | source: hosted |
| 152 | - version: "1.2.0" | ||
| 153 | - macros: | ||
| 154 | - dependency: transitive | ||
| 155 | - description: | ||
| 156 | - name: macros | ||
| 157 | - sha256: "12e8a9842b5a7390de7a781ec63d793527582398d16ea26c60fed58833c9ae79" | ||
| 158 | - url: "https://pub.dev" | ||
| 159 | - source: hosted | ||
| 160 | - version: "0.1.0-main.0" | ||
| 161 | - matcher: | ||
| 162 | - dependency: transitive | ||
| 163 | - description: | ||
| 164 | - name: matcher | ||
| 165 | - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb | ||
| 166 | - url: "https://pub.dev" | ||
| 167 | - source: hosted | ||
| 168 | - version: "0.12.16+1" | 56 | + version: "0.8.0" |
| 169 | meta: | 57 | meta: |
| 170 | dependency: transitive | 58 | dependency: transitive |
| 171 | description: | 59 | description: |
| 172 | name: meta | 60 | name: meta |
| 173 | - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 | ||
| 174 | - url: "https://pub.dev" | ||
| 175 | - source: hosted | ||
| 176 | - version: "1.15.0" | ||
| 177 | - mime: | ||
| 178 | - dependency: transitive | ||
| 179 | - description: | ||
| 180 | - name: mime | ||
| 181 | - sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" | 61 | + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" |
| 182 | url: "https://pub.dev" | 62 | url: "https://pub.dev" |
| 183 | source: hosted | 63 | source: hosted |
| 184 | - version: "1.0.5" | ||
| 185 | - node_preamble: | ||
| 186 | - dependency: transitive | ||
| 187 | - description: | ||
| 188 | - name: node_preamble | ||
| 189 | - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" | ||
| 190 | - url: "https://pub.dev" | ||
| 191 | - source: hosted | ||
| 192 | - version: "2.0.2" | ||
| 193 | - package_config: | ||
| 194 | - dependency: transitive | ||
| 195 | - description: | ||
| 196 | - name: package_config | ||
| 197 | - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" | ||
| 198 | - url: "https://pub.dev" | ||
| 199 | - source: hosted | ||
| 200 | - version: "2.1.0" | 64 | + version: "1.12.0" |
| 201 | path: | 65 | path: |
| 202 | - dependency: transitive | 66 | + dependency: "direct main" |
| 203 | description: | 67 | description: |
| 204 | name: path | 68 | name: path |
| 205 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" | 69 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" |
| 206 | url: "https://pub.dev" | 70 | url: "https://pub.dev" |
| 207 | source: hosted | 71 | source: hosted |
| 208 | version: "1.9.0" | 72 | version: "1.9.0" |
| 209 | - pool: | ||
| 210 | - dependency: transitive | 73 | + sherpa_onnx: |
| 74 | + dependency: "direct main" | ||
| 211 | description: | 75 | description: |
| 212 | - name: pool | ||
| 213 | - sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" | 76 | + name: sherpa_onnx |
| 77 | + sha256: "6cfadf7bc35001bb1284f9fac1e03e33787cafa918e0c45da96d1e91afa58751" | ||
| 214 | url: "https://pub.dev" | 78 | url: "https://pub.dev" |
| 215 | source: hosted | 79 | source: hosted |
| 216 | - version: "1.5.1" | ||
| 217 | - pub_semver: | 80 | + version: "0.0.3" |
| 81 | + sky_engine: | ||
| 218 | dependency: transitive | 82 | dependency: transitive |
| 219 | - description: | ||
| 220 | - name: pub_semver | ||
| 221 | - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" | ||
| 222 | - url: "https://pub.dev" | ||
| 223 | - source: hosted | ||
| 224 | - version: "2.1.4" | ||
| 225 | - shelf: | ||
| 226 | - dependency: transitive | ||
| 227 | - description: | ||
| 228 | - name: shelf | ||
| 229 | - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 | ||
| 230 | - url: "https://pub.dev" | ||
| 231 | - source: hosted | ||
| 232 | - version: "1.4.1" | ||
| 233 | - shelf_packages_handler: | ||
| 234 | - dependency: transitive | ||
| 235 | - description: | ||
| 236 | - name: shelf_packages_handler | ||
| 237 | - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" | ||
| 238 | - url: "https://pub.dev" | ||
| 239 | - source: hosted | ||
| 240 | - version: "3.0.2" | ||
| 241 | - shelf_static: | ||
| 242 | - dependency: transitive | ||
| 243 | - description: | ||
| 244 | - name: shelf_static | ||
| 245 | - sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e | ||
| 246 | - url: "https://pub.dev" | ||
| 247 | - source: hosted | ||
| 248 | - version: "1.1.2" | ||
| 249 | - shelf_web_socket: | ||
| 250 | - dependency: transitive | ||
| 251 | - description: | ||
| 252 | - name: shelf_web_socket | ||
| 253 | - sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" | ||
| 254 | - url: "https://pub.dev" | ||
| 255 | - source: hosted | ||
| 256 | - version: "2.0.0" | ||
| 257 | - source_map_stack_trace: | ||
| 258 | - dependency: transitive | ||
| 259 | - description: | ||
| 260 | - name: source_map_stack_trace | ||
| 261 | - sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" | ||
| 262 | - url: "https://pub.dev" | ||
| 263 | - source: hosted | ||
| 264 | - version: "2.1.1" | ||
| 265 | - source_maps: | ||
| 266 | - dependency: transitive | ||
| 267 | - description: | ||
| 268 | - name: source_maps | ||
| 269 | - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" | ||
| 270 | - url: "https://pub.dev" | ||
| 271 | - source: hosted | ||
| 272 | - version: "0.10.12" | ||
| 273 | - source_span: | ||
| 274 | - dependency: transitive | ||
| 275 | - description: | ||
| 276 | - name: source_span | ||
| 277 | - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" | ||
| 278 | - url: "https://pub.dev" | ||
| 279 | - source: hosted | ||
| 280 | - version: "1.10.0" | ||
| 281 | - stack_trace: | ||
| 282 | - dependency: transitive | ||
| 283 | - description: | ||
| 284 | - name: stack_trace | ||
| 285 | - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" | ||
| 286 | - url: "https://pub.dev" | ||
| 287 | - source: hosted | ||
| 288 | - version: "1.11.1" | ||
| 289 | - stream_channel: | ||
| 290 | - dependency: transitive | ||
| 291 | - description: | ||
| 292 | - name: stream_channel | ||
| 293 | - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 | ||
| 294 | - url: "https://pub.dev" | ||
| 295 | - source: hosted | ||
| 296 | - version: "2.1.2" | ||
| 297 | - string_scanner: | ||
| 298 | - dependency: transitive | ||
| 299 | - description: | ||
| 300 | - name: string_scanner | ||
| 301 | - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" | ||
| 302 | - url: "https://pub.dev" | ||
| 303 | - source: hosted | ||
| 304 | - version: "1.2.0" | ||
| 305 | - term_glyph: | ||
| 306 | - dependency: transitive | ||
| 307 | - description: | ||
| 308 | - name: term_glyph | ||
| 309 | - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 | ||
| 310 | - url: "https://pub.dev" | ||
| 311 | - source: hosted | ||
| 312 | - version: "1.2.1" | ||
| 313 | - test: | ||
| 314 | - dependency: "direct dev" | ||
| 315 | - description: | ||
| 316 | - name: test | ||
| 317 | - sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e" | ||
| 318 | - url: "https://pub.dev" | ||
| 319 | - source: hosted | ||
| 320 | - version: "1.25.7" | ||
| 321 | - test_api: | ||
| 322 | - dependency: transitive | ||
| 323 | - description: | ||
| 324 | - name: test_api | ||
| 325 | - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" | ||
| 326 | - url: "https://pub.dev" | ||
| 327 | - source: hosted | ||
| 328 | - version: "0.7.2" | ||
| 329 | - test_core: | ||
| 330 | - dependency: transitive | ||
| 331 | - description: | ||
| 332 | - name: test_core | ||
| 333 | - sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696" | ||
| 334 | - url: "https://pub.dev" | ||
| 335 | - source: hosted | ||
| 336 | - version: "0.6.4" | ||
| 337 | - typed_data: | ||
| 338 | - dependency: transitive | ||
| 339 | - description: | ||
| 340 | - name: typed_data | ||
| 341 | - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c | ||
| 342 | - url: "https://pub.dev" | ||
| 343 | - source: hosted | ||
| 344 | - version: "1.3.2" | ||
| 345 | - vm_service: | ||
| 346 | - dependency: transitive | ||
| 347 | - description: | ||
| 348 | - name: vm_service | ||
| 349 | - sha256: "360c4271613beb44db559547d02f8b0dc044741d0eeb9aa6ccdb47e8ec54c63a" | ||
| 350 | - url: "https://pub.dev" | ||
| 351 | - source: hosted | ||
| 352 | - version: "14.2.3" | ||
| 353 | - watcher: | ||
| 354 | - dependency: transitive | ||
| 355 | - description: | ||
| 356 | - name: watcher | ||
| 357 | - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" | ||
| 358 | - url: "https://pub.dev" | ||
| 359 | - source: hosted | ||
| 360 | - version: "1.1.0" | ||
| 361 | - web: | ||
| 362 | - dependency: transitive | ||
| 363 | - description: | ||
| 364 | - name: web | ||
| 365 | - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" | ||
| 366 | - url: "https://pub.dev" | ||
| 367 | - source: hosted | ||
| 368 | - version: "0.5.1" | ||
| 369 | - web_socket: | ||
| 370 | - dependency: transitive | ||
| 371 | - description: | ||
| 372 | - name: web_socket | ||
| 373 | - sha256: "24301d8c293ce6fe327ffe6f59d8fd8834735f0ec36e4fd383ec7ff8a64aa078" | ||
| 374 | - url: "https://pub.dev" | ||
| 375 | - source: hosted | ||
| 376 | - version: "0.1.5" | ||
| 377 | - web_socket_channel: | ||
| 378 | - dependency: transitive | ||
| 379 | - description: | ||
| 380 | - name: web_socket_channel | ||
| 381 | - sha256: a2d56211ee4d35d9b344d9d4ce60f362e4f5d1aafb988302906bd732bc731276 | ||
| 382 | - url: "https://pub.dev" | ||
| 383 | - source: hosted | ||
| 384 | - version: "3.0.0" | ||
| 385 | - webkit_inspection_protocol: | ||
| 386 | - dependency: transitive | ||
| 387 | - description: | ||
| 388 | - name: webkit_inspection_protocol | ||
| 389 | - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" | ||
| 390 | - url: "https://pub.dev" | ||
| 391 | - source: hosted | ||
| 392 | - version: "1.2.1" | ||
| 393 | - yaml: | 83 | + description: flutter |
| 84 | + source: sdk | ||
| 85 | + version: "0.0.99" | ||
| 86 | + vector_math: | ||
| 394 | dependency: transitive | 87 | dependency: transitive |
| 395 | description: | 88 | description: |
| 396 | - name: yaml | ||
| 397 | - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" | 89 | + name: vector_math |
| 90 | + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" | ||
| 398 | url: "https://pub.dev" | 91 | url: "https://pub.dev" |
| 399 | source: hosted | 92 | source: hosted |
| 400 | - version: "3.1.2" | 93 | + version: "2.1.4" |
| 401 | sdks: | 94 | sdks: |
| 402 | dart: ">=3.4.0 <4.0.0" | 95 | dart: ">=3.4.0 <4.0.0" |
| 96 | + flutter: ">=3.3.0" |
scripts/dart/release.sh
0 → 100755
| 1 | +#!/usr/bin/env bash | ||
| 2 | + | ||
| 3 | +# see | ||
| 4 | +# https://dart.dev/tools/pub/automated-publishing | ||
| 5 | + | ||
| 6 | +set -ex | ||
| 7 | + | ||
| 8 | +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
| 9 | +SHERPA_ONNX_DIR=$(cd $SCRIPT_DIR/../.. && pwd) | ||
| 10 | +echo "SCRIPT_DIR: $SCRIPT_DIR" | ||
| 11 | +echo "SHERPA_ONNX_DIR: $SHERPA_ONNX_DIR" | ||
| 12 | + | ||
| 13 | +SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" $SHERPA_ONNX_DIR/CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | ||
| 14 | + | ||
| 15 | +src_dir=$SHERPA_ONNX_DIR/sherpa-onnx/flutter | ||
| 16 | +pushd $src_dir | ||
| 17 | + | ||
| 18 | +v="version: $SHERPA_ONNX_VERSION" | ||
| 19 | +echo "v: $v" | ||
| 20 | +sed -i.bak s"/^version: .*/$v/" ./pubspec.yaml | ||
| 21 | +rm *.bak | ||
| 22 | +rm notes.md | ||
| 23 | +git status | ||
| 24 | +git diff | ||
| 25 | + | ||
| 26 | +HF_MIRROR=hf.co | ||
| 27 | +linux_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | ||
| 28 | +linux_wheel=$src_dir/$linux_wheel_filename | ||
| 29 | + | ||
| 30 | +macos_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp39-cp39-macosx_10_14_universal2.whl | ||
| 31 | +macos_wheel=$src_dir/$macos_wheel_filename | ||
| 32 | + | ||
| 33 | +windows_x64_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-win_amd64.whl | ||
| 34 | +windows_x64_wheel=$src_dir/$windows_x64_wheel_filename | ||
| 35 | + | ||
| 36 | +function process_linux() { | ||
| 37 | + mkdir -p t | ||
| 38 | + cd t | ||
| 39 | + curl -OL https://$HF_MIRROR/csukuangfj/sherpa-onnx-wheels/resolve/main/$linux_wheel_filename | ||
| 40 | + unzip $linux_wheel_filename | ||
| 41 | + cp -v sherpa_onnx/lib/*.so* ../linux | ||
| 42 | + cd .. | ||
| 43 | + rm -rf t | ||
| 44 | + | ||
| 45 | + pushd linux | ||
| 46 | + | ||
| 47 | + rm -v libpiper_phonemize.so libpiper_phonemize.so.1.2.0 | ||
| 48 | + rm -v libonnxruntime.so | ||
| 49 | + rm -v libcargs.so | ||
| 50 | + | ||
| 51 | + popd | ||
| 52 | +} | ||
| 53 | + | ||
| 54 | +function process_windows_x64() { | ||
| 55 | + mkdir -p t | ||
| 56 | + cd t | ||
| 57 | + curl -OL https://$HF_MIRROR/csukuangfj/sherpa-onnx-wheels/resolve/main/$windows_x64_wheel_filename | ||
| 58 | + unzip $windows_x64_wheel_filename | ||
| 59 | + cp -v sherpa_onnx-${SHERPA_ONNX_VERSION}.data/data/bin/*.dll ../windows | ||
| 60 | + cd .. | ||
| 61 | + rm -rf t | ||
| 62 | +} | ||
| 63 | + | ||
| 64 | +function process_macos() { | ||
| 65 | + mkdir -p t | ||
| 66 | + cd t | ||
| 67 | + curl -OL https://$HF_MIRROR/csukuangfj/sherpa-onnx-wheels/resolve/main/$macos_wheel_filename | ||
| 68 | + unzip $macos_wheel_filename | ||
| 69 | + cp -v sherpa_onnx/lib/*.dylib ../macos | ||
| 70 | + cd .. | ||
| 71 | + rm -rf t | ||
| 72 | + | ||
| 73 | + pushd macos | ||
| 74 | + rm -v libcargs.dylib | ||
| 75 | + rm -v libonnxruntime.dylib | ||
| 76 | + rm -v libpiper_phonemize.1.2.0.dylib libpiper_phonemize.dylib | ||
| 77 | + popd | ||
| 78 | +} | ||
| 79 | + | ||
| 80 | +process_linux | ||
| 81 | +process_windows_x64 | ||
| 82 | +process_macos |
| @@ -30,7 +30,7 @@ mkdir -p linux macos windows-x64 windows-x86 | @@ -30,7 +30,7 @@ mkdir -p linux macos windows-x64 windows-x86 | ||
| 30 | linux_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | 30 | linux_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| 31 | linux_wheel=$src_dir/$linux_wheel_filename | 31 | linux_wheel=$src_dir/$linux_wheel_filename |
| 32 | 32 | ||
| 33 | -macos_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp39-cp39-macosx_11_0_universal2.whl | 33 | +macos_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp39-cp39-macosx_10_14_universal2.whl |
| 34 | macos_wheel=$src_dir/$macos_wheel_filename | 34 | macos_wheel=$src_dir/$macos_wheel_filename |
| 35 | 35 | ||
| 36 | windows_x64_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-win_amd64.whl | 36 | windows_x64_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-win_amd64.whl |
| @@ -96,7 +96,6 @@ if [ ! -f $src_dir/windows-x64/sherpa-onnx-core.dll ]; then | @@ -96,7 +96,6 @@ if [ ! -f $src_dir/windows-x64/sherpa-onnx-core.dll ]; then | ||
| 96 | fi | 96 | fi |
| 97 | unzip $windows_x64_wheel_filename | 97 | unzip $windows_x64_wheel_filename |
| 98 | cp -v sherpa_onnx-${SHERPA_ONNX_VERSION}.data/data/bin/*.dll ../ | 98 | cp -v sherpa_onnx-${SHERPA_ONNX_VERSION}.data/data/bin/*.dll ../ |
| 99 | - cp -v sherpa_onnx-${SHERPA_ONNX_VERSION}.data/data/bin/*.lib ../ | ||
| 100 | cd .. | 99 | cd .. |
| 101 | 100 | ||
| 102 | rm -rf wheel | 101 | rm -rf wheel |
| @@ -116,7 +115,6 @@ if [ ! -f $src_dir/windows-x86/sherpa-onnx-core.dll ]; then | @@ -116,7 +115,6 @@ if [ ! -f $src_dir/windows-x86/sherpa-onnx-core.dll ]; then | ||
| 116 | fi | 115 | fi |
| 117 | unzip $windows_x86_wheel_filename | 116 | unzip $windows_x86_wheel_filename |
| 118 | cp -v sherpa_onnx-${SHERPA_ONNX_VERSION}.data/data/bin/*.dll ../ | 117 | cp -v sherpa_onnx-${SHERPA_ONNX_VERSION}.data/data/bin/*.dll ../ |
| 119 | - cp -v sherpa_onnx-${SHERPA_ONNX_VERSION}.data/data/bin/*.lib ../ | ||
| 120 | cd .. | 118 | cd .. |
| 121 | 119 | ||
| 122 | rm -rf wheel | 120 | rm -rf wheel |
| @@ -30,10 +30,6 @@ dependencies: | @@ -30,10 +30,6 @@ dependencies: | ||
| 30 | flutter: | 30 | flutter: |
| 31 | sdk: flutter | 31 | sdk: flutter |
| 32 | 32 | ||
| 33 | -dev_dependencies: | ||
| 34 | - flutter_test: | ||
| 35 | - sdk: flutter | ||
| 36 | - flutter_lints: ^3.0.0 | ||
| 37 | 33 | ||
| 38 | # The following section is specific to Flutter packages. | 34 | # The following section is specific to Flutter packages. |
| 39 | flutter: | 35 | flutter: |
-
请 注册 或 登录 后发表评论