reFlutter icon indicating copy to clipboard operation
reFlutter copied to clipboard

Error when build with custom hash

Open itewqq opened this issue 2 years ago • 4 comments

sudo docker run -it -v "$(pwd):/t" -e HASH_PATCH=7dbbeeb8ef7b91338640dca3927636de -e COMMIT=1ac611c64eadbd93c5f5aba5494b8fc3b35ee952 reflutter
...
USAGE:
reflutter your.(apk)|(ipa)
Wait... Change the source code...
src/build/install-build-deps-android.sh: not found

itewqq avatar Aug 20 '23 16:08 itewqq

Hi @itewqq , kindly pull the main branch and try to build again. It should be fine now.

jayluxferro avatar Aug 20 '23 17:08 jayluxferro

Hi @itewqq , kindly pull the main branch and try to build again. It should be fine now.

I've purged the image and rebuild it after git pull, but still not working:

$ sudo docker run -it -v "$(pwd):/t" -e HASH_PATCH=7dbbeeb8ef7b91338640dca3927636de -e COMMIT=1ac611c64eadbd93c5f5aba5494b8fc3b35ee952 reflutter

....

[0:19:00] Still working on:
[0:19:00]   src/third_party/dart
Syncing projects: 100% (141/141), done.
Running hooks:  40% ( 6/15) linux_sysroot_x64
________ running 'python3 src/build/linux/sysroot_scripts/install-sysroot.py --arch=x64' in '/customEngine'
Installing Debian sid amd64 root image: /customEngine/src/build/linux/debian_sid_amd64-sysroot
Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/79a7783607a69b6f439add567eb6fcb48877085c/debian_sid_amd64_sysroot.tar.xz
Running hooks:  46% ( 7/15) linux_sysroot_arm64
________ running 'python3 src/build/linux/sysroot_scripts/install-sysroot.py --arch=arm64' in '/customEngine'
Installing Debian sid arm64 root image: /customEngine/src/build/linux/debian_sid_arm64-sysroot
Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/2cade9ee1ca9186b28ac768c19e1ab7c45ee0600/debian_sid_arm64_sysroot.tar.xz
Hook 'python3 src/flutter/tools/pub_get_offline.py' took 10.76 secs
Running hooks: 100% (15/15), done.
USAGE:
reflutter your.(apk)|(ipa)
Wait... Change the source code...
bash: 1: bash: src/build/install-build-deps-android.sh: not found
$ uname -a
Linux stu 5.10.0-23-cloud-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux
$ uname -a
Linux stu 5.10.0-23-cloud-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux
$ git log -1
commit 3741cebd7cc8d1bc343d097328079082ad6c8447 (HEAD -> main, tag: ios-v2-7dbbeeb8ef7b91338640dca3927636de, tag: android-v2-7dbbeeb8ef7b91338640dca3927636de, origin/main, origin/HEAD)
Merge: 1c07ab6 083695e
Author: Jay <[email protected]>
Date:   Sun Aug 20 17:23:23 2023 +0000

    Merge pull request #261 from Impact-I/hotfix/dump_dart

    Hotfix/dump dart

itewqq avatar Aug 23 '23 14:08 itewqq

Hi ! I have the same problem.

maximegirardet avatar Sep 07 '23 12:09 maximegirardet

@itewqq , pull the latest changes, delete the docker image that was built. Build a new docker image of reflutter using the updated Dockerfile and now run docker run -it -v "$(pwd):/t" -e HASH_PATCH=7dbbeeb8ef7b91338640dca3927636de -e COMMIT=1ac611c64eadbd93c5f5aba5494b8fc3b35ee952 reflutter

jayluxferro avatar Sep 20 '23 20:09 jayluxferro