Federated blogging application, thanks to ActivityPub https://joinplu.me
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
751 B

  1. #!/bin/bash
  2. ARCH=$(python <<EOF
  3. from __future__ import print_function
  4. import platform
  5. processor = platform.machine()
  6. architecture = platform.architecture()
  7. if processor == 'aarch64':
  8. # Mutli arch arm support is why this 32bit check is present
  9. if '32bit' in architecture:
  10. print('armv71', end='')
  11. else:
  12. print('aarch64', end='')
  13. elif processor == 'x86 64' or processor == 'x86_64':
  14. print('amd64', end='')
  15. elif processor == 'armv7l':
  16. print('armhf', end='')
  17. EOF
  18. )
  19. if [ $ARCH == "aarch64" -o $ARCH == "armv71" ] ; then
  20. export PATH=/opt/local/llvm/bin:${PATH}
  21. cd /app
  22. RUSTFLAGS="-C linker=lld" wasm-pack build --target web --release plume-front
  23. else
  24. wasm-pack build --target web --release plume-front
  25. fi