File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 11/target 
22* .db 
3+ /dist 
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #  Build static Linux binary using musl
3+ set  -euo pipefail
4+ 
5+ VERSION=0.1.0
6+ TMP=" $( mktemp -d) " 
7+ DESTDIR=" $TMP /notifiers-$VERSION -linux-x86_64" 
8+ mkdir -p " $DESTDIR " 
9+ #  --no-track prevents creation of .crates.toml and .crates2.json
10+ cargo install --no-track --path .  --root " $DESTDIR " 
11+ mv " $DESTDIR /bin/notifiers" " $DESTDIR " 
12+ rmdir " $DESTDIR /bin" 
13+ pushd  " $TMP " 
14+ tar czf " notifiers-$VERSION -linux-x86_64.tar.gz" " notifiers-$VERSION -linux-x86_64" 
15+ popd 
16+ mkdir -p dist
17+ mv " $TMP /notifiers-$VERSION -linux-x86_64.tar.gz" " dist/notifiers-$VERSION -linux-x86_64.tar.gz" 
18+ rm -fr " $TMP " 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments